Uno + Ethernet shield+ ultra sonic distance sensor is an issue

good day,

how do i get a new ping sonar reading which shows in serial monitor to mqtt publish to home assistant