Answers.Body: <p>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.</p>
  
  <p>You can switch to port view prior to running your program to verify that your sensor is of the expected type and works.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-14T20:32:45.283Z
Answers.LastActivityDate: 2017-02-14T20:32:45.283Z
Answers.UserDisplayName: Maksym Astapov
Body: <p>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:</p>
  
  <p><a href="https://i.sstatic.net/PqX7u.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PqX7u.png" alt="enter image description here"></a></p>
  
  <p>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.</p>
  
  <p>The sensor is on port 4, and it works with programs developed on the ev3 itself.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-20T22:30:24.017Z
Comments.Text: How can you "see" that the sensor turns off? Perhaps you have it mistaken for the Ultrasonic Sensor. They are similar shape, but the ultrasonic sensors has LEDs so you can "see" if it working. The Infrared sensors does not have LEDs, just red paint, so you cannot "see" if it is working.
Comments.UserDisplayName: David Lechner
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-20T22:38:50.977Z
Comments.Text: You are right, I was using ultrasonic sensor! Thank you!
Comments.UserDisplayName: Simone Chelo
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T12:36:21.940Z
Comments.Text: @DavidLechner Please consider posting your comment as an answer.
Comments.UserDisplayName: Ambo100
Tags: <ev3>
Title: Infrared sensor behavior
UserDisplayName: Simone Chelo
ThreadText: # Infrared sensor behavior
  
  (Asked by: username_0 on 2016-01-20)
  
  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:
  
  [![enter image description here](https://i.sstatic.net/PqX7u.png)](https://i.sstatic.net/PqX7u.png)
  
  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.
  
  **Tags:** ev3
  
  > **Comments:**
  > **username_1**: How can you "see" that the sensor turns off? Perhaps you have it mistaken for the Ultrasonic Sensor. They are similar shape, but the ultrasonic sensors has LEDs so you can "see" if it working. The Infrared sensors does not have LEDs, just red paint, so you cannot "see" if it is working.  
  > **username_0**: You are right, I was using ultrasonic sensor! Thank you!  
  > **username_2**: @username_1 Please consider posting your comment as an answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-02-14. Score: 2 | Accepted answer
  
  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.
  
  
  ---
  
  