Energy harvesting has an essential role in the development of reliable devices for environmental wireless sensor networks (EWSN) in the Internet of Things (IoT), without considering the need to replace discharged batteries. Thermoelectric energy is a renewable energy source that can be exploited in order to efficiently charge a battery. The paper presents a simulation of an environment monitoring device powered by a thermoelectric generator (TEG) that harvests energy from the temperature difference between air and soil. The simulation represents a mathematical description of an EWSN, which consists of a sensor model powered by a DC/DC boost converter via a TEG and a load, which simulates data transmission, a control algorithm and data collection. The results section provides a detailed description of the harvested energy parameters and properties and their possibilities for use. The harvested energy allows supplying the load with an average power of 129.04 μW and maximum power of 752.27 μW. The first part of the results section examines the process of temperature differences and the daily amount of harvested energy. The second part of the results section provides a comprehensive analysis of various settings for the EWSN device’s operational period and sleep consumption. The study investigates the device’s number of operational cycles, quantity of energy used, discharge time, failures and overheads.