An Indian farmer from the hilly village of Piplodi in the western Indian state of Rajasthan has found himself in an unlikely spotlight.

Mor Singh, 60, never went to school but his selfless act of handing over his house to the village school - after it was badly damaged due to heavy rains - has made him a local hero.

His modest two-room residence now operates as an upper primary school attended by 50-60 students from the village, he says.

Last week, the state government gave Mr. Singh 200,000 rupees ($2,266, £1,682) in financial aid for his thoughtful gesture.

Rajasthan saw its wettest July in nearly 70 years with 285 mm of rain recorded statewide. On 25 July, a classroom roof collapsed in Piplodi, killing seven children, injuring 21 others and leaving the village school unusable.

Two days after the incident, Mr. Singh and his family, which includes his two-year-old grandson, moved to a bamboo-and-tarpaulin shack, which they set up on a patch of land a few meters from his house.

It is not an ideal accommodation, but Mr. Singh is willing to let go of his comforts for the future of the children, he told BBC over the phone.

If I had not taken that quick decision, many children would have dropped out. The only other school is in a neighbouring village, which is a two-kilometer (1.24 miles) trek in the hills. While the older students would have managed, the younger ones wouldn't have, he explains.

The 25 July tragedy in Piplodi exposed systemic issues of poor school infrastructure across Rajasthan. A recent government survey shows that more than 5,600 schools in the state are in dilapidated condition.

After Mr. Singh converted his home into a school, the state government declared Piplodi a model village under a federal scheme, which should attract more funds for a new school, a playground, a healthcare centre, and other facilities.

Some 90 families, mostly tribespeople, live in Piplodi. We are a poor community and have hardly seen any development, Mr. Singh says.

His noble act has transformed him into a local celebrity, regarded as a hero by the community.