Reading a value from a passive IR sensor

Current new functionality is pretty useless, but I wanted to play with
the sensor. I plan to integrate a MQTT data push with motion events
soon.
Sample code from _ for Persistence of vision project..

I still need to tweak this a bit for the hardware I built with my son. I
would also like to add a tutorial and pictures of the project.