Yamaha Outboard Oil Tank Sensor

I have a 2001 yamaha 225 outboard motor and the oil tank on the side of the engine will not fill automatically like it should when the oil level in that tank drops i was told by the local yamaha dealer that it was the cdi unit i replaced it and its but the problem still exist.
Yamaha outboard oil tank sensor.
Source : pinterest.com