A capacitive proximity sensor is a non-contact device that detects objects by measuring changes in capacitance caused by the object's…