# Infrared Laser Distance Sensor (50m/80m) (SEN0366)

**URL:** <https://forum.core-electronics.com.au/t/infrared-laser-distance-sensor-50m-80m-sen0366/10049>\
**Category:** DFRobot\
**Created:** [3 May 2021 11:11 UTC](https://forum.core-electronics.com.au/t/infrared-laser-distance-sensor-50m-80m-sen0366/10049 "2021-05-03T11:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Core](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/core/32/57_2.png) [@Core](https://forum.core-electronics.com.au/u/Core)\
**Post date:** [3 May 2021 11:11 UTC](https://forum.core-electronics.com.au/t/infrared-laser-distance-sensor-50m-80m-sen0366/10049/1 "2021-05-03T11:11:34Z")

</div>

This is a placeholder topic for [**“Infrared Laser Distance Sensor (50m/80m)”**](http://core-electronics.com.au/catalog/product/view/sku/SEN0366) comments.

 ![](https://core-electronics.com.au/media/catalog/product//s/e/sen0366-1.jpg)  
  
This is a cost-effective IR laser distance sensor that features high accuracy, long-distance detection, visible IR laser, and small FOV. It offers the measuring … read more  
  
[**Read more**](http://core-electronics.com.au/catalog/product/view/sku/SEN0366)

---

<div class="post-metadata">

**Author:** ![Marcus45846](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Marcus45846](https://forum.core-electronics.com.au/u/Marcus45846)\
**Post date:** [3 May 2021 11:11 UTC](https://forum.core-electronics.com.au/t/infrared-laser-distance-sensor-50m-80m-sen0366/10049/2 "2021-05-03T11:11:35Z")

</div>

Help I carnt communicate with the Infrared Laser Distance Sensor (50m/80m) sensor.  
  
Ive wired it up exactly as shown in the tutorial and copied the code.  
  
I get the error  
  
sketch\_may03b.ino:12:34: warning: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]  
  
char buff[4]={0x80,0x06,0x03,0x77};  
  
^   
  
Please help

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [3 May 2021 11:21 UTC](https://forum.core-electronics.com.au/t/infrared-laser-distance-sensor-50m-80m-sen0366/10049/3 "2021-05-03T11:21:34Z")

</div>

Hey Marcus,

Can you copy paste the code you’ve written and take some photos of how you’ve got it wired up? I know you said you’ve followed the tutorial exactly, but it’s always good to get a fresh set of eyes on it 🙂
