I want to collect temperature data from a Grove Temperature Sensor connected to my Arduino Nano 33. Following the instructions in this document, https://www.mouser.com/catalog/specsheets/Seeed_101020015.pdf , I achieved that. I get pretty accurate results. The only thing is I’d like to understand the code better. First of all, I’m wondering what is the raw output we get from the sensor? I’m trying to figure out this part of the code in particular :
float R = 1023.0/((float)a)-1.0;
R = 100000.0*R;
//convert to temperature via datasheet ;
More precisely, where does the 1023.0 come from? Could anyone help me out ?