Modbus Config

Hi, I am trying to send the value from a sensor to a plc via modbus TCP.
Am new to this. what do I need to add to the config file and how do I connect the value from the sensor to the modbus tag?

Think you might want to look at Node red for this one as HA doesn’t work as a Modbus slave.

But Node red can pull the data from HA and either act as a Modbus slave or if it’s an Allen Bradley PLC, it can write to the tag directly.