Why are all the necessary ceramic capacitors missing in your circuit diagram, as well as the one electrolytic capacitor of at least 100 microfarads between + 5V and GND ??? Are these capacitors also missing in your structure?
And what does the program not work? what does it do and what does it not do?