user53311: When I run the program, there are no syntax errors or anything. All it does is give me values for the temperature in the hundreds. I don't know if there is a way to turn these abstract and unexpected values into the actual temperature.
I originally expected that it would print out the temperature around 20 Celsius, but instead, it prints around 600. This is my code:
#include <Adafruit_Sensor.h>
#include "DHT.h"

int sensor_pin = A0; // Analog Pin sensor is connected to
int output_value ;

void setup(){

  Serial.begin(9600);
  delay(5000);//Delay to let system boot
  Serial.println("DHT11 Humidity & temperature Sensor\n\n");
  delay(5000);//Wait before accessing Sensor

}//end "setup()"

void loop(){
  //Start of Program 

    output_value= analogRead(sensor_pin);

    Serial.println("temperature = ");
    Serial.println(output_value);
    Serial.println("*C");     
    if (output_value < 60) {
    Serial.println("Increase temperature by ");
    Serial.println(output_value);
    Serial.println("*C");
} else {
    Serial.println("Temperature does not need to be increased.");
}

    delay(5000);

}// end loop() 


user27653: The DHT11 is a digital device. You cannot read from it with analogRead().
While temperature is an analog value, that's not how the DHT11 communicates with an Arduino. There is a specific digital protocol.
In your code, it appears you have added the headers for the Adafruit Sensor library and DHT library, but you never actually call the functions provided therein.
The Adafruit repository for the DHT sensor library has an example:
https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino
You can see how to create an object from the DHT class, and how to call it's member functions, such as readTemperature() and so on.

53311: <p>When I run the program, there are no syntax errors or anything. All it does is give me values for the temperature in the hundreds. I don't know if there is a way to turn these abstract and unexpected values into the actual temperature.</p>

<p>I originally expected that it would print out the temperature around 20 Celsius, but instead, it prints around 600. This is my code:</p>

<pre><code>#include &lt;Adafruit_Sensor.h&gt;
#include "DHT.h"

int sensor_pin = A0; // Analog Pin sensor is connected to
int output_value ;

void setup(){

  Serial.begin(9600);
  delay(5000);//Delay to let system boot
  Serial.println("DHT11 Humidity &amp; temperature Sensor\n\n");
  delay(5000);//Wait before accessing Sensor

}//end "setup()"

void loop(){
  //Start of Program 

    output_value= analogRead(sensor_pin);

    Serial.println("temperature = ");
    Serial.println(output_value);
    Serial.println("*C");     
    if (output_value &lt; 60) {
    Serial.println("Increase temperature by ");
    Serial.println(output_value);
    Serial.println("*C");
} else {
    Serial.println("Temperature does not need to be increased.");
}

    delay(5000);

}// end loop() 
</code></pre>
 27653: <p>The DHT11 is a <strong>digital</strong> device. You cannot read from it with <code>analogRead()</code>.</p>

<p>While temperature is an <em>analog</em> value, that's not how the DHT11 communicates with an Arduino. There is a specific digital protocol.</p>

<p>In your code, it appears you have added the headers for the Adafruit Sensor library and DHT library, but you never actually call the functions provided therein.</p>

<p>The Adafruit repository for the DHT sensor library has an example:
<a href="https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino" rel="nofollow noreferrer">https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino</a></p>

<p>You can see how to create an object from the <code>DHT</code> class, and how to call it's member functions, such as <code>readTemperature()</code> and so on.</p>
