temperature sensor project

Integer division is causing you a truncation problem. Try:

float voltage = (sensorVal/1024.0) * 5.0;