{
  "version": 1,
  "author": "Makmal Arduino Maya",
  "editor": "wokwi",
  "parts": [
    { "type": "board-esp32-devkit-c-v4", "id": "esp", "top": 0, "left": 0, "attrs": {} },
    { "type": "wokwi-dht22", "id": "dht1", "top": -120, "left": 160, "attrs": { "temperature": "29", "humidity": "65" } },
    { "type": "wokwi-potentiometer", "id": "tanah", "top": 200, "left": -180, "attrs": {} },
    { "type": "wokwi-photoresistor-sensor", "id": "ldr1", "top": 300, "left": -40, "attrs": {} },
    { "type": "wokwi-pushbutton", "id": "btn1", "top": 210, "left": 200, "attrs": { "color": "blue" } },
    { "type": "wokwi-relay-module", "id": "relay1", "top": 120, "left": 260, "attrs": {} },
    { "type": "wokwi-led", "id": "pam", "top": 60, "left": 420, "attrs": { "color": "blue", "label": "Pam" } },
    { "type": "wokwi-resistor", "id": "r1", "top": 140, "left": 420, "rotate": 90, "attrs": { "value": "220" } },
    { "type": "wokwi-buzzer", "id": "bz1", "top": -110, "left": -120, "attrs": { "volume": "0.2" } },
    { "type": "wokwi-lcd1602", "id": "lcd1", "top": -260, "left": -60, "attrs": { "pins": "i2c" } }
  ],
  "connections": [
    [ "esp:TX", "$serialMonitor:RX", "", [] ],
    [ "esp:RX", "$serialMonitor:TX", "", [] ],
    [ "dht1:VCC", "esp:3V3", "red", [] ],
    [ "dht1:GND", "esp:GND.2", "black", [] ],
    [ "dht1:SDA", "esp:15", "green", [] ],
    [ "tanah:VCC", "esp:3V3", "red", [] ],
    [ "tanah:GND", "esp:GND.1", "black", [] ],
    [ "tanah:SIG", "esp:34", "orange", [] ],
    [ "ldr1:VCC", "esp:3V3", "red", [] ],
    [ "ldr1:GND", "esp:GND.1", "black", [] ],
    [ "ldr1:AO", "esp:35", "yellow", [] ],
    [ "btn1:1.l", "esp:4", "blue", [] ],
    [ "btn1:2.l", "esp:GND.2", "black", [] ],
    [ "relay1:VCC", "esp:5V", "red", [] ],
    [ "relay1:GND", "esp:GND.2", "black", [] ],
    [ "relay1:IN", "esp:26", "violet", [] ],
    [ "relay1:COM", "esp:3V3", "red", [] ],
    [ "relay1:NO", "pam:A", "blue", [] ],
    [ "pam:C", "r1:1", "black", [] ],
    [ "r1:2", "esp:GND.2", "black", [] ],
    [ "bz1:2", "esp:25", "magenta", [] ],
    [ "bz1:1", "esp:GND.1", "black", [] ],
    [ "lcd1:VCC", "esp:5V", "red", [] ],
    [ "lcd1:GND", "esp:GND.1", "black", [] ],
    [ "lcd1:SDA", "esp:21", "green", [] ],
    [ "lcd1:SCL", "esp:22", "yellow", [] ]
  ],
  "dependencies": {}
}
