Hi, I did similar kind of project, I developed a cloud-based solution to control the modules(relay, sensors, GPS ., etc.) connected to Arduino, esp32, raspberry p..Once the data is received to the backend it can be stored in a database and also transform data if required. Triggering Rules can also be initialized to send alarms and notifications. With my experience, I can quickly help you out