Text this: A Chain-Based Wireless Sensor Network Model Using the Douglas-Peucker Algorithm in the Iot Environment