Code bits for trying to make the arboreal ant sensor http://andy.dorkfort.com/andy/digitalnatural/2014/05/30/arboreal-ant-sensor-main-project-summer-2014/