Hi, I was following one of tutorials on the internet for simple automatic watering project and wired up an arduino nano, 12V power source, resistor, relay, water pump, humidity sensor and a BC547. The sensor signal is alright and the relay clicks whenever the sensor is triggered (green light lights up), but my pump doesn't spin. I tried troubleshooting by going through the circuit few times, changing some things but nothing seems to work. This is my setup:
I'm guessing my power wiring is off? I also researched the BC547 a bit and found it weird that different websites give different information on the order of the pins. While following a tutorial I initially wired it the opposite way and it didn't work at all, so I just plugged it in flipped.