Continuous position feedback with diagnostic function thanks to the smart valve sensor