I am creating a small application in which on detecting the water the Buzzer will ring. But right now I am testing with LED instead of Buzzer.
Raindrop Sensor datasheet link: https://components101.com/sensors/rain-drop-sensor-module
I don't need any MCU in this project. I connected the sensor to the 5V and GND and connected the A0 (Analog Pin) to the Positive of LED.
Note: 5V and GND were supplied from Arduino UNO
But LED turns on as soon as I connect power to the circuit. And when I drop water on the sensor LED turns OFF. Opposite of what I want. So I thought of using a transistor as a switch to turn LED ON on detecting water.
Below is my circuit:
But this isn't working at all. Any guide on how can I get it to work with or without transistor.