adds a script for an infrared proximity sensor