$ 0 0 Try something like this. You will be able to assign two pins for input and output. This diagram is for the Ping sensor, but this method can be applied to any three pin sensor.