You could use MQTT, for example. A very common way to use remote sensors on things like ESP8266 is this. You install an MQTT broker on the RPi which collects data from sensors which send then over the network. The Rpi then collects that data, stores it and allows people to view and plot it in different ways (or do whatever they intend to do). It can be displayed on a locally connected LCD, send to some cloud platform, or served by a webserver to any device. Benefits include that the mqtt protocol was desibned for this puirpose, that there are ready libraries for ESP8266, you can easily add more sensors, free open source software exists, and millions of tutorials on the net.
here is quote from the link below
MQTT was designed to save as much as possible the battery of the mobile devices on which it is used. It is 11 times less energy consuming to send messages and 170 times less to receive than HTTP. MQTT is also 93 times faster than HTTP.
https://en.wikipedia.org/wiki/MQTT
https://diyprojects.io/mqtt-mosquitto-c ... FwW61wzYuU