# ir sensor not working well with microbit

**URL:** <https://forum.makecode.com/t/ir-sensor-not-working-well-with-microbit/28396>\
**Category:** micro:bit\
**Created:** [April 24, 2024, 1:55am UTC](https://forum.makecode.com/t/ir-sensor-not-working-well-with-microbit/28396 "2024-04-24T01:55:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr.oussama](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@mr.oussama](https://forum.makecode.com/u/mr.oussama)\
**Post date:** [April 24, 2024, 1:55am UTC](https://forum.makecode.com/t/ir-sensor-not-working-well-with-microbit/28396/1 "2024-04-24T01:55:51Z")

</div>

Hello,  
Am using microbit v1.5 and ir sensor (tcrt5000), in P3 and vcc=3.3v.  
the problem is when the ir sensor detects and sends the value 1 to pin3, this value always remains 1 in the event of no-detection, whereas normally it returns to the value 0.  
knowing that sometimes this problem fails.  
Any solution please?
