I have a LED strip connected to a 12v source with a switch button between them. When you press the button the LED will light up. At the same time, i want to input this button to an arduino and read whether it's on or off.
How should i do this?
(deleted)