best practices in detecting relay contacts status
If the Auxiliary contacts are not currently used, you just connect them to a microcontroller digital input as you would any other switch - something like so:







simulate this circuit &ndash; Schematic created using CircuitLab

If the auxiliary contact is already used, you may have to use an opto-coupler or perhaps an additional relay, depending on what is connected to the auxiliary contacts of the contactor.