added code for motor and pH