Water Sensor moisture sensor rain detection Water Sensor is a humidity way to detect moisture sensor and Arduino xbee sensor expansion board V5 with use, can detect rain Specifications 1 analog sensor 2 Output voltage range: 0 to 4.5V (5V power supply); 0 3.0V (3.3V power supply) 3 module size: 20X30mm Arduino routines: void setup () { Serial.begin (9600); / / open the serial port and set the baud rate to 9600 bps } void loop () { int val; val = analogRead (0); / / sensor connected to analog port 0 Serial.println (val, DEC) ;/ / send data from the serial port and wrap delay (100); }
Trustpilot
2 weeks ago
1 month ago