MATLAB libraries of DHT11 sensor

62 views (last 30 days)
Sadiq Akbar
Sadiq Akbar on 20 Nov 2021
Commented: Walter Roberson on 7 Dec 2022
If the DHT11 sensor is connected to my Arduino and I want to read the temperature and humidity data directly from that pin of Arduino to which it is attached without the help of any arduino code, is there any Matlab library available for that?
  1 Comment
MathWorks MATLAB Hardware Team
Hi Sadiq,
Kindly reach out to MathWorks Technical Support to get help in resolving your query

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 20 Nov 2021
  4 Comments
Walter Roberson
Walter Roberson on 7 Dec 2022
If "out" is showing Temperature: 18.00 then the implication is that the data sent by the other side is not just numeric. If you know for sure that the "Temperature:" part is always going to be there then you can use fscanf() with a format of 'Temperature: %f' to read the numeric part directly, but if there might be a variety of text then you need to analyze the text to figure out which format to use.

Sign in to comment.

Categories

Find more on Instrument Connection and Communication 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!

Translated by