code and layout for PIR sensor, simple example