you do it in the same way as you do with any other sensor ...
- read out sensor
- prozess data
- send data
Sorry, this is the Nextion forum.
- for MZ80, you clearly did not make effort to find
such was not hidden on internet (datasheet, Arduino code)
- but the Nextion forum isn't such to get Arduino code for non-Nextion device.