# HOMEWORK

จงเขียนโปรแกรมให้บอร์ด Arduino UNO อ่านค่าเซนเซอร์ DHT12 แล้วส่งค่าผ่าน UART ไปยังบอร์ด M5Stack เพื่อให้ค่าที่อ่านได้แสดงผลออกมาบนจอ LCD&#x20;

Hint Code: M5 Stack LCD print

```

#include <M5Stack.h>
void setup() {
  m5.begin();
  M5.Lcd.setTextSize(3);
  Serial.begin(115200);
  M5.Lcd.clear();
}

void loop() {
  
  String data = "Hello world";
  M5.Lcd.setCursor(0,0);
  M5.Lcd.print(data);
  delay(200);
  M5.Lcd.clear();
  
}
```

{% hint style="warning" %}

#### &#x20;รูปแบบ  Homework ที่ต้องส่ง

1. ภาพการเชื่อมต่อวงจรและบอก pin ที่ใช้ในวงจร
2. Code ที่เขียนและคำอธิบายการทำงานของ code &#x20;
3. ภาพผลการอ่านค่าเซนเซอร์ของที่แสดงบน M5Stack LED
   {% endhint %}
