DHT11 sensor not shown values in ThingSpeak

radhakrishna on 11 Apr 2023 (Edited on 17 Apr 2023)
Latest activity Reply by Christopher Stapels on 11 May 2023

Dear team,
i have issue regarding not shown values thingspeak
Ales
Ales on 4 May 2023

dear team, I have a problem logging into ThingSpeak

Christopher Stapels
Christopher Stapels on 17 Apr 2023
Can you describe your hardware (what microprocessor are you using) and perhaps show some of the code you are using to connect to ThingSpeak and how you are writing the data to ThingSpeak. Aslo please show us the response you are getting and describe the response you are expecting.
Karan
Karan on 4 May 2023
Hello Sir I am getting Signin issues can you help me out...
thingspeak is automatically getting logging out.
radhakrishna
radhakrishna on 19 Apr 2023
Dear Sir,
Thank you for your valuable responce...
I am using ESP8266 Nodemcu with wifi module. ya it is sowing values on thingspeak.
I have another question??
in ESP8266 nodemcu with can i connect with 24vdc sensor, it is possible to connect???
if YES, then which module we can use in-between esp8266 and 24vdc hydraulic sensor.
if NO, your answer_______________________________
i want to connect 24vdc temperature sensor to ESP8266 Node mcu?
i am waiting your valuable response...
Thanks & Regards,
Radhakrishna
Christopher Stapels
Christopher Stapels on 3 May 2023
I'm not clear exactly what you are asking. In general, you cannot conenct 24 V sesnsors to a 3.3 V board. But you can use circuitry in between the two objects to bring the voltage down or re interpret the signals. I would need more information about the sensor, but its not really a ThingSpeak issue.
radhakrishna
radhakrishna on 9 May 2023

Dear sir, I am using esp8266 microcontroller temperature sensor send values to mail and notification to mail It is possible to send

Christopher Stapels
Christopher Stapels on 9 May 2023
ESP8266 can definitely interact with ThingSpeak to update values from a sensor and trigger email alerts.
radhakrishna
radhakrishna on 9 May 2023

Dear Sir, Can you tel me steps to email notification on thingspeek

Christopher Stapels
Christopher Stapels on 9 May 2023
Sure! See the documentation page for the send alert API, and here is an example showing how to analyze data in your channel to trigger an alert.
radhakrishna
radhakrishna on 10 May 2023
Dear Sir,
message showing given bellow.
can you take online my laptop
error using Temperature & Humidity monitoring System tem1
Specify a valid read API key, or make the channel public to avoid specifying the read API key.
Christopher Stapels
Christopher Stapels on 10 May 2023 (Edited on 10 May 2023)
It seems that you are reading data from a private channel, so you need to supply the API key in the thingSpeakRead command. Have a look at the thingSpeakRead documentation to see how to use the read API key.
radhakrishna
radhakrishna on 11 May 2023 (Edited on 11 May 2023)
dear sir,
i have problem in this code
can you send me code for temperature and humidity i created this code, but it is not working please send code for temperature and humidity
Note:iwill past my code here....
% Store the channel ID for the sensors channel.
channelID = 2102228;
% Provide the ThingSpeak alerts API key. All alerts API keys start with TAK.
alertApiKey = 'TAKxxxxxxxxxxxxxxxx';
% Set the address for the HTTTP call
alertUrl="https://api.thingspeak.com/alerts/send";
% webwrite uses weboptions to add required headers. Alerts needs a ThingSpeak-Alerts-API-Key header.
options = weboptions("HeaderFields", ["ThingSpeak-Alerts-API-Key", alertApiKey ]);
% Set the email subject.
alertSubject = sprintf("Weather Monitoring System Update");
% Read the recent data.
temperatureData = thingSpeakRead(channelID,'NumDays',1,'Fields',1);
humidityData = thingSpeakRead(channelID,'NumDays',1,'Fields',2);
% Check to make sure the data was read correctly from the channel.
if (temperatureData > 27) & (humidityData < 80);
alertBody = "It is gonna be a sunny day";
else (temperatureData < 27 & (humidityData > 80);
alertBody = "It is gonna be a rainy day";
end
% Catch errors so the MATLAB code does not disable a TimeControl if it fails
try
webwrite(alertUrl , "body", alertBody, "subject", alertSubject, options);
catch someException
fprintf("Failed to send alert: %s\n", someException.message);
end
Christopher Stapels
Christopher Stapels on 11 May 2023
Your channel (2102228) is set to private. You need to provide the read api key to thingSpeakRead in this section.
temperatureData = thingSpeakRead(channelID,'NumDays',1,'Fields',1);
humidityData = thingSpeakRead(channelID,'NumDays',1,'Fields',2);
Please go to the docuemntation link that I supplied above to get the correct syntax.
You might have an easier time testing your code at MATLAB online. Use this link to MATLAB home and them click the blue button at the top to use MATLAB online.
Then you can copy the code back to ThingSpeak for automation.

Tags

No tags entered yet.