Hubitat with Homemade Temperature, Humidity, Pressure and Light sensor

Playing round if I can easily hook something up to use the module detecting a power loss like here.