10.08.2015, 07:17
Right now we are using 10-bit resolution in order not to block the bus for too long as increasing the resolution causes the measurement to take longer time to finish. Value will always be slightly unstable, this is just how the sensor works. You can increase the accuracy by oversampling: reading several values in a row and calculating the average.
You can also read full resolution temperature value from a script like this:
You can also read full resolution temperature value from a script like this:
Code:
require('ow')
value = ow.readfile('SENSORID', 'temperature', true) -- third argument will force a new conversion