Infrared sensor

sensors.infrared1.onEvent(null, function () {});
sensors.infrared1.pauseUntil(null);
sensors.infrared1.proximity();

See Also

on event, pause until, proximity