Seatbelt detection

Sorry mates I'm kinda new to Arduino and this place. I figured it out. Should have used a AND gate. Got it working. Thanks! I'm new to Arduino. Still getting used to it. Was doing a lot of 8051 programming before.