Getting more measurement from Shelly BLU H&T in to the InfluxDB for visulasation in Grafana

I have several Shelly BLU H&T devices and a database in InfluxDB, which is visualized in Grafana. The problem is that temperature measurements are recorded much more frequently than humidity measurements. I need to ensure that a humidity measurement is recorded every time a temperature measurement is saved in InfluxDB. I also need more control over the query configuration. Is this possible?