I have used 2 10 k.Ohm resistors attached from the 5V to the SDA and one to the SCL wire. I still get a failed to initialize for the measurements. I also know that my wires are less than 50cm in length.
this is what I still get on the com port.
init(): failed
Error in read()
None of the wires are touching. Again, the sensor is receiving power. I had it working for a day, but again it doesn't initialize the sensor. I haven't changed anything to the board or with the sensor itself. It seems that When I got it to work I had to reset it repeatedly, but I do not know why this would be the case?