# PIM366 not working on I2C with Arduino Due

**URL:** <https://forums.pimoroni.com/t/pim366-not-working-on-i2c-with-arduino-due/20113>\
**Category:** Support\
**Created:** [August 24, 2022, 8:36am UTC](https://forums.pimoroni.com/t/pim366-not-working-on-i2c-with-arduino-due/20113 "2022-08-24T08:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorenzoD](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@LorenzoD](https://forums.pimoroni.com/u/LorenzoD)\
**Post date:** [August 24, 2022, 8:36am UTC](https://forums.pimoroni.com/t/pim366-not-working-on-i2c-with-arduino-due/20113/1 "2022-08-24T08:36:13Z")

</div>

Schematics:

 ![20220824_101657](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/3/36303d5feaf4f58e9b2901339da3b939c0c78b95.jpeg)  
Code used: [code](https://github.com/sparkfun/SparkFun_MLX90640_Arduino_Example) (in particular the BasicReadings example) as stated [here](https://shop.pimoroni.com/products/mlx90640-thermal-camera-breakout?variant=12549161746515) on product page.  
This setup yields this result on serial Monitor:

```auto
MLX90640 IR Array Example
MLX90640 online!
Parameter extraction failed
Pixel 0: nanC
Pixel 1: nanC
Pixel 2: nanC
Pixel 3: nanC
Pixel 4: nanC
Pixel 5: nanC
Pixel 6: nanC
Pixel 7: nanC
Pixel 8: nanC
Pixel 9: nanC

```

Further investigation reported that error is -4, meaning that too many pixels are outliers or broken, in particular:

```auto
MLX90640 IR Array Example
MLX90640 online!
Parameter extraction failed - Error: -4
Broken pizels: 192, outlier pixels: 336

```

In addition, we noticed that broken and outlier pixels followed a precise column-wise pattern.  
We thought sensor was broken, so we requested another one but we had the exact same results with similar setup on new sensor.  
Any suggestion?

Notice: I2C setup worked correctly with another I2C-connected sensor. Soldering on the pim366 board has been checked with a multimeter.
