Anyone good with Arduino code? Wanting to adapt some code

I’m wanting to adapt some code for a Home Assistant integration.

At the moment it has to be configured by a USB hard wired serial connection and I’d like to control it via MQTT.

MQTT support is already configured and working for reporting/sending of data, it’s more - how can I CONTROL the enrollment of a new fingerprint via MQTT

Thank you!!