Building Sensor Networks From Design to Applications