I am using an Arduino Due board, and I would like to interface it with an altitude sensor. My hardware connections are:
- Pin 20 goes to SDA of sensor
- Pin 21 goes to SCL of sensor
- Vcc of the sensor is connected to 3.3 V and GND is connected to GND. INT pins are left open, and I used this code:
https://github.com/sparkfun/MPL3115A2_Breakout/blob/master/firmware/mpl3115a2/mpl3115a2.ino
My problem is that serial monitor only shows I²C.
What could be wrong?