How to convert integer value coming from modbus to float value

  1. Instead of using msg.payload you should be using msg.payload.item1
  2. To format the number on the dashboard use angular pipes How to limit temp display on dashboard to 2 decimals - #3 by Steve-Mcl