Microcontroller-based performance enhancement of an optical fiber level transducer