Sensor gateway implementation for AS3935 lightning detector