and just for fun i made a little detector script of my own. this version was made in the level bp (coulb be made in any bp) and takes into account overlapping gas cloud actors. it updates every 0.25 seconds and can combine the values of multiple clouds. it will even go over the limit of 1 if you wanted to.
i should also note that i was using a print string on tick to report the values. if you wanted to do that in a widget then you would just need to report the values to the widget or create a binding that holds the value.