How can I see the (binomial) value of the AM2302 temperature sensor on the display?
Show older comments
Hi,
I've create a DHT11 Sensor Block with this documentation. Create DHT11 Block
But when I click on "Monitor and Tune", I have an error message, see in DHT11_model...txt.
Thanks for your help.
Answers (2)
Isha
on 20 Mar 2026
0 votes
Hello,
You may try troubleshooting steps such as:
- Use the exact example flow for DHT11 (IO Device Builder) and include Adafruit DHT + Unified Sensor libraries as shown Create DHT11 Sensor Block to Measure Relative Humidity and Temperature Using IO Device Builder App - MATLAB & Simulink
- Add the source file that implements those functions: In IO Device Builder Source files, include the .cpp/.c that defines setupFunctionDHT11 and stepFunctionDHT11 (from the example or your driver). Re‑generate the block. How to Build Custom Sensor Blocks for Arduino in Simulink - MATLAB & Simulink
- Clean rebuild: Delete DHT11_model_ert_rtw/ (or run a clean build) and try Monitor & Tune again. Tune and Monitor Model Running on Hardware - MATLAB & Simulink
Hope this helps.
Cédric DEPOILLY
on 20 Mar 2026
0 votes
Categories
Find more on Get Started with Computer Vision Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!