Change MQTT variable in HA and return to Arduino ID

In an Arduino Skeetch I create, among other things, 2 variables and publish them:
client.publish(“Minddiff”, minddiff_c); Value: 1
client.publish(“Hysteresis”, hysteresis_c); Value 3
In HA these become entities in the config.yaml.

I’m looking for a way to change this between 1 - 5 and pass it back to the Arduino.