ESPHome example
esp32:
board: esp32-c3-devkitm-1
i2c:
sda: GPIO6
scl: GPIO7
binary_sensor:
- platform: gpio
pin:
number: GPIO3
mode: INPUT_PULLUP
inverted: true
name: "Button"
A full config with sensors, keys and a pin clash check: ESPHome generator. Other boards: ESP32, ESP32-S3, ESP8266.
Where to buy
Links open a search in the shop; some are affiliate links: buying through them costs you nothing extra and supports this site. We do not sell devices or get them from manufacturers.