RFID controller for homeautomation