Hi.
Thanks for the useful code.
By the way, cheap sensors made in China are still being sold. The problem is that I don't know which factory the sensors I buy from the internet mall come from.
Among them, the worst one returns a temperature value about once in 10 times, and the rest returnㄴ an infinite number.
So, I am using my own algorithm. That is, it takes only the numbers in the range that the DS18B20 can measure and discards the rest.
Please refer to https://javalab.org/microbit_ds18b20/ when upgrading the code later.
Hi.
Thanks for the useful code.
By the way, cheap sensors made in China are still being sold. The problem is that I don't know which factory the sensors I buy from the internet mall come from.
Among them, the worst one returns a temperature value about once in 10 times, and the rest returnㄴ an infinite number.
So, I am using my own algorithm. That is, it takes only the numbers in the range that the DS18B20 can measure and discards the rest.
Please refer to https://javalab.org/microbit_ds18b20/ when upgrading the code later.