The mlx5en(4) driver now supports reading the on-board temperature by using the following sysctl.
# sysctl dev.mce.<N>.hw_temperature
The returned value is in millicelcius. For example: 96000 = 96 degrees Celsius.