I think it;s VERY likely that the sensor is fine and its just the cracked glass makes it mess up. I had an issue with my 920 doing exactly what yours did due to some dust. I was able to fix it by cleaning the dust out.
Since the phone is messed up, I'd recommend attempting to peel some of the...