Adjusted for analog DIY sensor input instead of pushbutton