{
"version": 1,
"author": "劉泰均",
"editor": "wokwi",
"parts": [
{ "type": "wokwi-esp32-devkit-v1", "id": "esp", "top": 0, "left": 0.67, "attrs": {} },
{
"type": "wokwi-led",
"id": "led1",
"top": -14.46,
"left": 245.13,
"attrs": { "color": "green" }
},
{ "type": "wokwi-dht22", "id": "dht1", "top": -129.49, "left": 139.39, "attrs": {} },
{
"type": "wokwi-pir-motion-sensor",
"id": "pir1",
"top": -75.33,
"left": -180.95,
"attrs": {}
},
{
"type": "wokwi-led",
"id": "led2",
"top": -12.66,
"left": 292.45,
"attrs": { "color": "red" }
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": 92.14,
"left": -333.63,
"rotate": 180,
"attrs": { "color": "green" }
}
],
"connections": [
[ "esp:TX0", "$serialMonitor:RX", "", [] ],
[ "esp:RX0", "$serialMonitor:TX", "", [] ],
[ "dht1:VCC", "esp:VIN", "red", [ "v221.81", "h-158.92", "v-29.43" ] ],
[ "dht1:GND", "esp:GND.1", "black", [ "v0" ] ],
[ "dht1:SDA", "esp:D15", "green", [ "v0" ] ],
[ "pir1:VCC", "esp:VIN", "red", [ "v0" ] ],
[ "pir1:GND", "esp:GND.2", "black", [ "v0" ] ],
[ "esp:D32", "pir1:OUT", "green", [ "h0" ] ],
[ "led1:A", "esp:D23", "green", [ "v6.74", "h-129", "v-8.16" ] ],
[ "dht1:GND", "led1:C", "black", [ "v57.03", "h48.33" ] ],
[ "esp:D22", "led2:A", "green", [ "h32.4", "v19.05", "h176.24" ] ],
[ "led2:C", "led1:C", "black", [ "v13.28", "h-30.17" ] ],
[ "esp:D33", "btn1:2.l", "green", [ "h0" ] ],
[ "esp:GND.2", "btn1:1.l", "black", [ "h0" ] ]
]
}