2012 Chevrolet Impala gas gauge malfunction

gas gauge does not work properly…when car is full of gas, gauge works properly and shows full tank. when car is down to three or so gallons left, the gauge still shows approx. half tank left.

Probably the fuel level sensor.