Check the proximity sensor placement and connectivity. It might be far from the screen so you have to bring it more closer to detect input right.
open