Hello
I have been trying to show DS18B20 sensors temperature variables in my nextion display but when ever I try to upload this code I ve got the error:
Members do not like to have to download code. Read the forum guidelines to see how to properly post code and some good information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Isn't the type wrong?
Are there any examples that come with the DS18B20 library? Do the examples us a begin() statement?
You failed to include a dht library or create a dht object. How do you expect to read a
non-existent dht sensor?
You need a separate library to read the dht sensor as it is not the same as a DS18B20. Or write the code to read the dht yourself (which I wager is outside your current ability). The IDE library manager has libraries to help to read those sensors.
I have no idea what you have. You include a library for a DS18B20 one wire temperature sensor.
The DHT11 or DHT22 are completely different sensors for temperature and humidity. A DS18B20 library is totally wrong for reading a DHT. If you have a DHT sensor you will need a library for that and not a library for DS18B20. If you have both, you will need a library for each.
The DHT sensors are very popular with Arduino. A search for "dht sensor arduino" gets almost a half million hits. Check some out to see what others have done. There are several DHT libraries available via the IDE library manager. They all should have example code to get you started.
Hi me from another account can u write every mistak or the main ones and how to solve them beacuse it gets a little confuseing I need to know exact problems to solve the error