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

What's the yellow thin in the upper right corner?
What's with the resistor on the power supply?
Which power supply do you have?
Please post a picture of your setup.