i\'m making a project smart home simulation on website. Variables are generating in PHP function, then are saving to MYSQL database and displaying on website. State 0 means