Kyiv. Ukraine. The IoT-devices LLC team has developed and made available on GitHub an example in Lua for its GGreg20_V3 product, which can be used for ESP8266 and ESP32 controllers with NodeMCU firmware.
![lua code example ggreg20_v3](https://iot-devices.com.ua/wp-content/uploads/2022/02/ggreg20_v3_luaexample_iot-deviceslogo-1024x683.png)
The script allows you to receive pulses from the ionizing radiation detection module GGreg20_V3, accumulate pulses and calculate the moving average (MA5) radiation power (uSV/h) with a five-minute buffer.
You can find the repository at the following link:
https://github.com/iotdevicesdev/ggreg20-v3-nodemcu-lua-example