"Alarm" for values

Hi everyone,
I’d like to know if it’s possible to “program” an alarm that is released when the air quality goes over a certain amount. For example, an email alarm whenever the air quality goes over 30 micrograms…
Kind regards,
Ben