Smart home system based on Contiki-OS