To have Alerts we need to automatically and continuously analyze measured data of IoT sensors. Based on such timeseries data, we need to alert user in case of anomalies.
See Analytics with grafana and Setup influx DB under telemetry-api