Am stupid, need help

Start simple, and work your way up. Get an Arduino and follow the tutorials to blink an LED without using delay(), read a switch, a voltage, a sensor, etc.

Then you will be able to ask sensible questions about, and move forward on a more complex project.