A Case Study of Internet of Things Based on Wireless Sensor Networks and Smart Phones