Fixed a small bug where Pin 4 was declared as an OUTPUT rather than an INPUT. H/T to J-C!