Arduino Project 14-Arduino Rain Sensor

In this tutorial will use a  rain sensor and we will turn on an LED if it is raining. In this case we used an LED but a buzzer can be also be used (see previous tutorials).

This sketch will allow us to send a number on the serial port which is the value of the amount of rain detected by the sensor.