Install a sensor test app. There are a number of them in the App store.
I found myself in this exact situation. Turns out the replacement sensor is extremely sensitive and the built in driver does not handle it that well. I now use Lux Lite to adjust the brightness on the tablet. I'm...