Check the wiring, double check the wiring, triple check the wiring.
If you think it's OK, use the original code that was given to you as that (I assume) should work.
If it doesn't, check the wiring again.
Check the wiring, double check the wiring, triple check the wiring.
If you think it's OK, use the original code that was given to you as that (I assume) should work.
If it doesn't, check the wiring again.