I had this Geiger counter DIY Kit for Arduino laying around for a long time and decided to connect it to my Home Assistant installation using ESPHome.
I'm using a Wemos D1 mini, even though the counter works at 5V and the IO pins accept a max. voltage of 3.2V it works and hasn't damage the input. (disclaimer)
Connect the pins as follows:
esphome: name: <YOURPLUGNAME> platform: ESP8266 board: esp01_1m wifi: ssid: "<WIFISSID>" password: "<WIFIPASSWORD>" # Enable logging logger: # Enable Home Assistant API api: password: "<YOURPASSWORD>" ota: password: "<YOURPASSWORD>" sensor: - platform: pulse_counter pin: GPIO4 name: "Geiger Counter" update_interval: 15s unit_of_measurement: 'μSv/h' filters: - multiply: 0.006315 # https://github.com/radhoo/uradmonitor_kit1/issues/16
Above the code for the ESPHome node, after compile and upload, auto discover it using integrations and define a Lovelace entry like so:
- type: entities entities: - entity: sensor.geiger_counter