Measuring voltage from Thermoelectric generator

Suggest you print out the raw values from the analog read to see whether it's changing smoothly as you're expecting. This function returns an int, by the way, not a float. If you're looking at the raw value, it'd be best to treat it as an int.