Hazards Mind They were != but I want it so that button is a digital input and button 2 is a analog input. So I was wondering how to fix the code for that. The values for the analog are around 40 when the laser is not blocked and around 450 when the laser is blocked.