using a RFrobot moisture sensor, a raspberry pi, LED bulb, and a Python script to develop a device that detects and notifies when water is present.

Here we have a moisture sensor that is connected to a control board that is using a raspberry pi 3 for power and configurations. Using pin 1 for 3.3v of pwr and pin 21 for configurations using a Python script. The Python script has one function and it prints a string to notify that water has been detected along with lighting up an LED light bulb. The scipt is in an infinite loop repeating every 1 second and runs at startup of the raspberry pi.