배송 |
---|
상품 정보 | 가격 | 삭제 |
---|---|---|
아두이노 정전식 토양 습도 센서 모듈 Capacitive Soil Moisture Sensor Module | ||
TOTAL PRICE(수량) 0 |
1
2
3
4
5
6
7
8
9 |
void setup() {
Serial.begin(9600); // open serial port, set the baud rate as 9600 bps
}
void loop() {
int val;
val = analogRead(0); //connect sensor to Analog 0
Serial.println(val); //print the value to serial port
delay(100);
} |
cs |