Nagios check from pico sensor

I made a classical temperature sensor with pico. It can present the temperature of the internal sensor and also the connected ds18b20 sensor value on the serial. I plan to add more sensors even to the pico later.
I am confused what is the easy way to read these values from the linux host machine that collects the cheks in nagios. The nagios should run a command that read the value of the sensors.
My first idea to wait commands on the pico and response for them.
echo "list\r" > /dev/ttyACM3 | tail -1
or something similar.
The other solution is to wite this check in python omegle shagle voojio and forget it.
Can you recommend any basic best practice pattern about it ?
I am confused what is the easy way to read these values from the linux host machine that collects the cheks in nagios. The nagios should run a command that read the value of the sensors.
My first idea to wait commands on the pico and response for them.
echo "list\r" > /dev/ttyACM3 | tail -1
or something similar.
The other solution is to wite this check in python omegle shagle voojio and forget it.
Can you recommend any basic best practice pattern about it ?