REALIABLE WIRELESS SENSOR NETWORKS IN SMART HOMES