If you have to get one reading per second (1 Hz) or a reading every few seconds... you may want to consider keeping connections alive and reuse them but you'd also have to change your "web server" code a bit.
See Connection: keep-alive :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-AliveSet a timeout of around 5 seconds, set a max requests of whatever you're comfortable with (let's say 50) and don't close connection as soon as you're done
Then the browser may request the page and when you're done sending the page the browser may request the favicon on the same open connection... and when you refresh page once a second, your kept alive connection may be reused saving some latency.
You could also consider using Javascript on the page to retrieve new measurements once a second or as often as you want, instead of reloading the whole page... as that could be annoying (page flickering, user not able to copy/paste stuff as the page keeps reloading etc)
For example, once the page is loaded, the javascript on the page could request json encoded data which could be something like {id:1 , value:12.4} and next reading you'd have {id:2, value:12.8} and so on... you'd want some unique id or the measurement time to know if it's a new measurement and not the old one, and the javascript code could add the fresh reading to the screen and replace the old one or append the value to a list (maybe you want a history of the last N readings on the page)
you could extend the json api to give you more results or based on some parameter
ex GET /api/temperature.json?from=20220706125015
and your code replies
{
count : 2,
results: [
{ date:"20220706125015", value: "100" },
{ date:"20220706125016", value: "110" },
]
error: false
}
The javascript code requests all values from that date yyyymmddhhmmss because that's the last time it has a reading for, or the date sent through the initial html page, or simply doesn't send that date parameter and gets the latest 1..10-whatever readings.
In the example above, it gets two results and pushes them on the screen, then waits 1s or more and requests data again, with the data parameter updated.
Note there's even more complex stuff, it's now possible to "stream" something, so your server could keep connection alive and push data and Javascript on the page could open a connection and keep it alive for hours and read chunks of data and decode them and put stuff on screen.
See
https://developer.mozilla.org/en-US/docs/Web/API/Streams_API#examples