I hope to upload a video tutorial shortly to enable you to set up the Arduino and breadboard along with the sensors and other components you will need to do this project.
The code for the Arduino is as follows:
#include "DHT.h"
#include
#define DHTPIN 2
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
const int analogReadPin = 2;
int outPinRed = 9;
int outPinGreen = 10;
int outPinBlue = 11;
int temperatureValue = 0;
SoftwareSerial BT(1, 0); //TX, RX respectively
void setup() {
Serial.begin(9600);
dht.begin();
pinMode(outPinRed, OUTPUT);
pinMode(outPinGreen, OUTPUT);
pinMode(outPinBlue, OUTPUT);
}
// BT.begin(9600);
void loop() {
// while (BT.available())
{
digitalWrite(outPinRed, LOW);
digitalWrite(outPinGreen, HIGH);
digitalWrite(outPinBlue, LOW);
float h = dht.readHumidity();
float t = dht.readTemperature();
float f = dht.readTemperature(true);
if (isnan(t) || isnan(h) || isnan(f))
{
Serial.println("Failed to read from DHT");
digitalWrite(outPinRed, HIGH);
digitalWrite(outPinGreen, LOW);
digitalWrite(outPinBlue, LOW);
return;
}
digitalWrite(outPinRed, LOW);
digitalWrite(outPinGreen, LOW);
digitalWrite(outPinBlue, HIGH);
temperatureValue = ((t * 9) / 5 + 32);
analogWrite(analogReadPin, h);
analogWrite(analogReadPin, temperatureValue);
Serial.print("Humidity = ");
Serial.print(h);
Serial.println(" %");
Serial.print("Temp = ");
Serial.print(temperatureValue);
Serial.println(" F");
}
delay(1000);
}
We do not host Temp/Humidity App for Arduino on our servers. We did not scan it for viruses, adware, spyware or other type of malware. This app is hosted by Galad and passed their terms and conditions to be listed there. We recommend caution when installing it.
The APK Download link for Temp/Humidity App for Arduino is provided to you by apps112.com without any warranties, representations or guarantees of any kind, so access it at your own risk.
If you have questions regarding this particular app contact the publisher directly. For questions about the functionalities of apps112.com contact us.
| ||||
Downloads: 16 | ||||
Updated At: 2024-04-22 15:02:22 | ||||
Publisher: EpicMansDad007 | ||||
Operating System: Android | ||||
License Type: Free |