I recently bought the MPL115A2 sensor (https://www.adafruit.com/products/992
) and am having several problems.
First of all the product page states "simply connect the VIN pin to the 5V voltage pin, GND to ground, SCL to I2C Clock (Analog 5 on an UNO) and SDA to I2C Data (Analog 4 on an UNO)". If I connect the VIN to the 5V pin I am connecting the arduino to itself and the sensor will receive no power. I am guessing that this is typo and that VIN must refer to either SDWN, RST, or VDD on the sensor but I do not know which.
The second problem is that none of the example code will run with the arduino software. Both example codes get_pt and get_pressure generate the error 'Adafruit_MPL115A2' does not name a type.
I am not trying to do anything complicated with this sensor, i would just like it to display pressure and temperature readings in the serial viewer, and maybe eventually once a certain pressure or temperature is reached to trigger a separate piece of code.