As soon as I got it working correctly I took video of it before I broke it.
My goal is to make several of these working together to form an interactive proximity sensing table.
This part of the code simply outputs a proportional amount of brightness to the proximity of an object reflecting IR light.