This is a question about connecting vernier sensors to the photon. I originally had this working with an Arduino Yun but would like to see if it would work with the Photon. I used this guide to wire up the BTA connector into the voltage divider and this information with a couple of changes for the program.
I have wired up everything as shown below.
In the program, I changed line 46 from
float Voltage = Count / 1023 * 5.0;// convert from count to raw voltage
float Voltage = Count / 4095 * 3.3;// convert from count to raw voltage.
All of the numbers I am getting are way off. Any thoughts on what my problem is?