@iotcrazy I understood the voltage divider part by googling. So this is the only option to find the battery percentage right ? We cannot determine by connecting directly to Raw when input if more than 3.3 v.
@mfalkvidd I was looking to your sketch and could not quite understand this piece of line
result = 1125300L / result; // Calculate Vcc (in mV); 1125300 = 1.110231000
How will this above line change if I use 4 AA battery ?.
Thanks in advance