Code for using dome PIR sensor with arduino to do basic motion detection