Changed short-range IR to digital input