# Akıllı Sıcaklık Monitörü

ESP32'ye bağlı bir DHT11 sensöründen sıcaklık ve nem okuyarak değerleri her 5 dakikada bir PxServ'e yükler.

**Donanım:** ESP32, DHT11 sensörü\
**Kütüphaneler:** `WiFi.h`, `PxServ.h`, `DHT.h`

```cpp
#include <WiFi.h>
#include <PxServ.h>
#include <DHT.h>

#define WIFI_SSID "your_ssid"
#define WIFI_PASS "your_password"
#define DHT_PIN 4
#define DHT_TYPE DHT11

PxServ client("pxserv_api_anahtariniz");
DHT dht(DHT_PIN, DHT_TYPE);

void setup() {
  Serial.begin(115200);
  WiFi.begin(WIFI_SSID, WIFI_PASS);
  dht.begin();

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
  }
}

void loop() {
  float temp = dht.readTemperature();
  float hum = dht.readHumidity();

  client.setData("temperature", String(temp));
  client.setData("humidity", String(hum));

  delay(300000); // 5 dakikalık aralık
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pxserv.net/tr/ornek-projeler/akilli-sicaklik-monitoru.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
