Theory:
Just like previous weeks the VCC pin is our power leg, which connects to our 3.3V pin on our GPIO board, which provides power to our raindrop sensor.
GND for ground. Where our circuit will end.
Digital Output: Outputs a signal of either a 1 or a 0.
Analog Output: Outputs a signal from 1023 to 0, 1023 is equivalent to a digital 1 (Full Power), 512 is half power, 0 for no power.
Our raindrop sensor will output higher analog values when it is more dry. When it is more wet, it will output lower values. The reason why this works is because the raindrop sensor with all the metal strips on it has power put through it. While it’s dry, power comes in and comes out without resistance. However, if you look closely, you’ll find that the metal strips don’t actually touch. When water is put onto the sensor, it connects the two halves of the metal strips and diverts some of that power being put in. This causes the measured value of power to decrease.
Find the analog read pin block under Advanced -> Pins. The rest can be found under basic.