
Bengaluru techie builds AI-powered fan that auto-adjusts speed based on sleep posture
India Today
A Bengaluru techie developed an AI-powered fan that adjusted the speed automatically based on how he slept, which offers a personalised comfort solution and showcased practical AI applications in smart homes.
A Bengaluru techie shared how he built an AI-powered “roommate” that adjusted his ceiling fan automatically based on how he slept in a now-viral post on social media.
The innovation was shared by software engineer Pankaj, who goes by the handle @the2ndfloorguy on X. In his post, he explained that he was “tired of waking up at 3 am either sweaty or freezing,” which led him to train his system to monitor his sleep posture and control the fan accordingly.
He claimed that if his arms or legs were sticking out from under the blanket, the system interpreted that as him feeling hot, and switched the fan on. If his arms were curled up, suggesting he’s cold, the fan turned off.
The setup used a remote button pusher device that physically presses the fan switch after receiving signals from his system.
He then detailed that the system ran a MediaPipe pose vision model on his Raspberry Pi home server. It detected his sleeping position in real time and sent commands to activate or deactivate the fan. “That’s it,” he wrote, calling it what a “real smart home” looks like.
The accompanying image showed a modest bedroom setup with a camera overlay marking body joints and a label reading “FAN_ON ratio=2.32,” visually demonstrating how the system tracked pose detection.

After a dismal performance in the recent Bangladesh election, Nahid Islam, NCP convenor and anti-Sheikh Hasina protest leader, has resorted to allegations as if to justify the party's poor show. Nahid claimed that the election results had been manipulated, and the victorious BNP colluded with India and Hasina's Awami League.

Women are treated in the new penal code as being on the same level as "slaves", with provisions allowing either "slave masters" or husbands to administer discretionary punishment, including beatings, to their wives or subordinates. This aspect of the code has drawn particular alarm from rights groups.











