i01.startPIR("COM5",12)
def input():
# print 'python object is ', msg_clock_pulse
pin = msg_i01_right_publishPin.data[0]
print 'pin data is ', pin.pin, pin.value
if (pin.value == 1):
mouth.speak("howdy partner")
#head.neck.moveTo(85)
#sleep(2)
#head.neck.moveTo(90)
# auto detaches any attached servos after 120 seconds of inactivity
i01.autoPowerDownOnInactivity()
my full script