Please use code tags when posting code.
angle =map(analogRead(A0), 96, 927, -90, 90)
Please explain how you arrived at the numbers 96 and 927.
It would make sense to replace those numbers with the actual analog input readings, when the sensor is pointed directly up and down. That is, calibrate the sensor.