This microcontroller will turn off something after a specified amount of time. Just input the delay, and connect the microcontroller to your mechanical or logic device