Here is a nice clean error free schematic. I hope this helps! You don't need any more code, just the code and wiring that guy shows you plus this small addition.