DHT11 sensor for yogurt maker?


hello,
i know if possible use dht11 type sensor (with arduino uno) regulate temperature inside yogurt maker... not able find helpful example code type of thing, seems pretty easy... anyway have this:

code: [select]
if dht11 temperature > 43

heaterpin low

else

heaterpin high


here basic example code:
code: [select]
// example testing sketch various dht humidity/temperature sensors
// written ladyada, public domain

#include "dht.h"

#define dhtpin 2     // pin we're connected to

// uncomment whatever type you're using!
#define dhttype dht11   // dht 11
//#define dhttype dht22   // dht 22  (am2302)
//#define dhttype dht21   // dht 21 (am2301)

// connect pin 1 (on left) of sensor +5v
// connect pin 2 of sensor whatever dhtpin is
// connect pin 4 (on right) of sensor ground
// connect 10k resistor pin 2 (data) pin 1 (power) of sensor

dht dht(dhtpin, dhttype);

void setup() {
  serial.begin(9600);


  dht.begin();
}

void loop() {
  // wait few seconds between measurements.
  delay(1500);

  // reading temperature or humidity takes 250 milliseconds!
  // sensor readings may 2 seconds 'old' (its slow sensor)
  float h = dht.readhumidity();
  // read temperature celsius
  float t = dht.readtemperature();
  // read temperature fahrenheit
  float f = dht.readtemperature(true);
 
  // check if reads failed , exit (to try again).
  if (isnan(h) || isnan(t) || isnan(f)) {
    serial.println("failed read dht sensor!");
    return;
  }

  // compute heat index
  // must send in temp in fahrenheit!
  float hi = dht.computeheatindex(f, h);

  serial.print("humidity: ");
  serial.print(h);
  serial.print(" %\t");
  serial.print("temperature: ");
  serial.print(t);
  serial.println(" *c ");
 
}


is possible acheive this?

thanks!

quote
i know if possible use dht11 type sensor (with arduino uno) regulate temperature inside yogurt maker.

no, isn't. possible use 1 measure temperature, , have arduino turn on/off kind of heater/cooler regulate temperature.

quote
is possible acheive this?

yes. problem? have going heat/cool yogurt maker?


Arduino Forum > Using Arduino > Programming Questions > DHT11 sensor for yogurt maker?


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support