The maximum temperature at Allahabad and Hamirpur also crossed the 40 degrees-mark, the MeT said.
Varanasi and Agra were the hottest places in the state with a high of 41.4 degrees followed by Hamirpur at 41.2 degrees Celsius, it said.
The weatherman has predicted hot weather conditions in various parts of the state in the next 24 hours.