Circuit and code works in simulation but not doing anything when done it real life

The yellow thing is just a multimeter I just forgot to remove. I put the resistor there so I only put 5v into the breadboard because I am using a 9v battery but I cannot get a picture right now.