Infrared sensor behavior I'm developing a small program with the LEGO's Ev3 development tool. I'm trying to make the robot rotate, 30° at time, and if the infrared sensor detects something then make something and stop. Here is my current program:



The result is odd: it makes a few loops, than I can see the sensor turns off for a few seconds and then it is completely unresponsive, even if I stop the program and run other programs! I have to turn it off and on again to make it work.

The sensor is on port 4, and it works with programs developed on the ev3 itself.
Try waiting longer - one second or one and a half. And you were using the ultrasonic sensor but in the program you use infrared sensor block.

You can switch to port view prior to running your program to verify that your sensor is of the expected type and works.