Preprint
Article

This version is not peer-reviewed.

Wi-Fi CSI Thermal Tomography with ESP32 Arrays: Contactless 2D Indoor Temperature Field Mapping for Smart Buildings

Submitted:

25 January 2026

Posted:

26 January 2026

You are already at the latest version

Abstract
Indoor thermal comfort and energy efficiency depend not only on average room temperature but also on spatial temperature gradients that arise from solar gains, fa¸cade leakage, stratification, and non-uniform HVAC delivery. Conventional thermostats and point sensors cannot capture these variations without dense deployment, which increases installation and maintenance cost. This paper introduces a low-cost Wi-Fi Channel State Information (CSI) thermal tomography framework that reconstructs 2D temperature fields in indoor spaces using arrays of ESP32 nodes without any physical contact sensors in the monitored zone. We extend refractive-index-based temperature models to multiple Wi-Fi links and formulate a tomographic forward model in which each link provides an approximate line integral of temperature-induced phase and amplitude variations. A regularized inverse problem, solved using Tikhonov-regularized least squares and physics-guided basis functions, recovers the spatial temperature distribution on a grid from multi-link CSI features. A prototype testbed with 6–10 ESP32-WROOM-32 nodes deployed around a 6 m × 4 m room is evaluated under controlled heating scenarios, with ground-truth temperature fields obtained from a sparse thermistor grid and a reference infrared (IR) camera. Experiments show that Wi-Fi CSI thermal tomography achieves an average per-cell mean absolute error of 0.9◦C on a 12 × 8 grid, with peak errors below 1.8◦C and stable reconstruction under moderate human motion. Compared to interpolation from a limited set of thermistors, the proposed method improves field reconstruction accuracy by 27% using the same number of wired sensors, while requiring only boundary-mounted ESP32s. The entire reconstruction pipeline runs in 310 ms on a low-power edge computer (Raspberry Pi 4) receiving CSI from ESP32 nodes over UDP. These results demonstrate that commodity Wi-Fi infrastructure can be repurposed for coarse thermal imaging of rooms, enabling spatially aware HVAC diagnostics and control without dense physical sensor instrumentation.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  

1. Introduction

Thermal comfort, energy consumption, and occupant satisfaction in buildings are strongly influenced by spatial temperature variations rather than a single room-average value.[1,2] Non-uniformity arises from solar loads, façade leakage, stratification, furniture layout, and heterogeneous HVAC airflows, leading to regions that are too warm or too cold even when the thermostat setpoint is nominally satisfied.[3] Diagnosing such issues typically requires dense temperature measurements or infrared (IR) thermography, both of which are expensive and difficult to deploy continuously at scale.
Standard thermostats and wall-mounted point sensors provide limited spatial coverage, while IR cameras and thermographic surveys require line-of-sight, manual operation, and costly hardware.[4,5] Embedding wired thermistor grids into ceilings or walls is rarely feasible in existing buildings due to disruption and cost. As a result, building operators often lack visibility into the true thermal state of zones, limiting the effectiveness of model-predictive control and fault detection.[6]

1.1. Wi-Fi CSI for Contactless Sensing

Wi-Fi Channel State Information (CSI) encodes the complex frequency response of orthogonal frequency-division multiplexing (OFDM) subcarriers and has emerged as a versatile modality for device-free sensing, including human activity recognition, localization, imaging, and vital-sign monitoring.[7,8,9,10,11,12,20] CSI captures fine-grained spatial characteristics of the wireless channel, as it reflects the superposition of multipath components, each influenced by the environment’s geometry and electromagnetic properties.[8,27]
Recent works on Wi-Fi imaging and electromagnetic diffraction tomography have demonstrated that CSI can be used to reconstruct coarse spatial maps of objects and humans, including depth images and silhouettes, by treating Wi-Fi propagation as a low-frequency imaging system.[18,19,24] These approaches exploit multi-link CSI measurements and solve inverse problems to estimate spatial distributions of scattering or attenuation, often using deep learning or physics-based tomographic algorithms.

1.2. Motivation for Wi-Fi Thermal Tomography

Temperature variations affect the refractive index and dielectric properties of air and surrounding materials, which in turn modulate Wi-Fi propagation. While these effects are subtle compared to strong scattering from humans or furniture, they are systematic and accumulate over propagation paths.[16,17] Our recent work and others have shown that single-link CSI can be used to estimate zone-averaged temperature with sub-degree accuracy.[13,14]
However, estimating only a single aggregate temperature per link compresses spatial information into a scalar. With multiple transmit–receive pairs distributed around a room, each link effectively measures a path-integrated temperature perturbation along its main propagation region. This observation suggests that Wi-Fi CSI could support thermal tomography: reconstructing a coarse grid of temperature values from a set of multi-link CSI observations, analogous to X-ray or ultrasound tomography but at radio frequencies.

1.3. Contributions

This paper explores Wi-Fi CSI-based thermal tomography using low-cost ESP32 nodes and makes the following contributions:
1.
Tomographic forward model: We extend refractive-index-based CSI temperature models to multiple links and derive an approximate tomographic forward model in which each link provides a line-integral-like observation of temperature deviations along its dominant paths.
2.
Regularized inverse reconstruction: We formulate recovery of the 2D temperature field as a Tikhonov-regularized least-squares inverse problem with physics-guided basis functions, and we design a practical reconstruction pipeline that maps multi-link CSI features to grid temperatures.
3.
ESP32 array testbed and evaluation: We build a 6–10 node ESP32-WROOM-32 array around a test room and collect multi-link CSI data under controlled heating scenarios, using a sparse thermistor grid and an IR camera as ground truth. We quantify reconstruction accuracy, spatial resolution, and sensitivity to multipath and human motion.
4.
Edge implementation: We implement the reconstruction on a low-power edge computer and demonstrate sub-second reconstruction times, enabling near-real-time visualization of indoor temperature fields.
The remainder of this paper is organized as follows. Section 2 reviews related work on Wi-Fi imaging, CSI sensing, and thermal tomography. Section 3 presents the theoretical foundation for Wi-Fi thermal tomography. Section 4 details the hardware, data collection, feature extraction, and reconstruction algorithms. Section 5 reports experimental results, and Section 6 discusses limitations, deployment implications, and future work. Section 7 concludes the paper.

2. Related Work

2.1. Thermal Imaging and Tomography

Thermal imaging technologies such as IR cameras, fluorescent thermography, and CT-based thermometry provide high-resolution temperature maps but require specialized sensors and often direct line-of-sight.[5,22,23] Thermographic tomography and 3D thermal field reconstruction from surface measurements have been explored using physics-informed neural networks and inverse heat conduction methods, achieving accurate volumetric temperature estimates in laboratory settings.[21,25]
While these methods offer powerful capabilities, their hardware and calibration requirements make continuous deployment in everyday buildings challenging. A complementary approach using existing communication infrastructure could provide lower-resolution but much cheaper and easier-to-deploy thermal field estimates.

2.2. Wi-Fi CSI Imaging and Tomography

Wi-Fi imaging research has developed methods to reconstruct silhouettes, depth maps, and occupancy distributions using CSI or channel impulse response, sometimes aided by reconfigurable intelligent surfaces or multimodal learning.[18,19,24,26] Electromagnetic diffraction tomography with Wi-Fi has been studied for shape reconstruction of objects, treating CSI matrices as measurements of scattered fields and applying tomographic inversion algorithms.[19]
These works typically focus on object geometry and human-centric imaging rather than environmental parameters such as temperature. The underlying mathematical frameworks, however, are relevant to thermal tomography, as both involve reconstructing spatial scalar fields from integral or scattered measurements.

2.3. Wi-Fi CSI for Temperature Sensing

CSI-based environmental sensing has mainly targeted zone-averaged temperature, humidity, or occupancy rather than spatial fields. RSSI-based temperature sensing has demonstrated coarse estimation with mean absolute errors above 2C.[13] Our own previous work and related studies showed that CSI can improve accuracy to sub-degree levels for single-point or zone-averaged temperature.[14,20]
To the best of our knowledge, no prior work has treated CSI temperature sensing as a tomographic inverse problem to reconstruct 2D indoor temperature fields. This paper fills that gap by combining multi-link CSI, refractive-index modeling, and regularized inversion.

3. Theoretical Foundation

3.1. Multi-Link CSI Model

Consider an indoor environment discretized into N grid cells, each with temperature T i relative to a reference T 0 . A set of L Wi-Fi links between ESP32 nodes provides CSI measurements H k ( ) for subcarrier k and link . Following standard models, the CSI for link can be written as
H k ( ) = p = 1 P α p ( ) e j 2 π f k τ p ( ) ,
where P is the number of multipath components, α p ( ) is the complex gain, and τ p ( ) the delay for path p.
For thermal tomography, we focus on the dominant propagation regions of each link, approximated as straight (or slightly curved) beams between the transmitter and receiver.[19] The effective path delay is influenced by the refractive index n ( x ) along the path, which depends on the local temperature field T ( x ) .

3.2. Refractive Index and Path Integrals

For small deviations from a reference temperature, the refractive index can be approximated as
n ( x ) n 0 + α T ( T ( x ) T 0 ) ,
where α T is a constant sensitivity coefficient on the order of 10 6 K−1 under indoor conditions.[16,17] The phase accumulation along path p of link is
ϕ p ( ) = 2 π f c c Γ p ( ) n ( x ) d s ,
where Γ p ( ) denotes the path curve. Substituting Eq. (2) and linearizing yields
Δ ϕ p ( ) 2 π f c α T c Γ p ( ) ( T ( x ) T 0 ) d s .
Assuming a small number of dominant paths and aggregating over subcarriers, we construct link-level phase or amplitude features Δ y ( ) that are approximately linear in the path-integrated temperature deviations.

3.3. Discrete Tomographic Forward Model

Discretizing the domain into N cells with temperatures T i , we approximate the line integrals as
Δ y ( ) i = 1 N w i ( ) ( T i T 0 ) ,
where w i ( ) represents the effective intersection length (or weighting) of link with cell i. Stacking all L links yields the linear system
y = W t + n ,
where y R L contains link features, t R N contains cell temperature deviations, W R L × N is the weighting matrix, and n captures noise and modeling error.
While the actual relationship between CSI and temperature is more complex due to multipath and amplitude effects, Eq. (6) provides a useful linear approximation for tomographic reconstruction.

3.4. Regularized Inverse Problem

Recovering t from y is an ill-posed inverse problem because L N and W is ill-conditioned. We formulate a Tikhonov-regularized least-squares problem:
t ^ = arg min t y W t 2 2 + λ L t 2 2 ,
where L is a discrete Laplacian or gradient operator enforcing spatial smoothness, and λ > 0 is a regularization parameter. The closed-form solution is
t ^ = ( W W + λ L L ) 1 W y .
In practice, we compute W from known node positions and line-of-sight assumptions, and we estimate y by aggregating multi-subcarrier CSI features for each link.

4. Methodology

4.1. Hardware and Testbed

4.1.1. ESP32 Array

We deploy N nodes { 6 , 8 , 10 } ESP32-WROOM-32 modules with external antennas along the perimeter of a 6 m × 4 m test room. Nodes are mounted at 2.4 m height on walls, creating L bidirectional links. Nodes run custom firmware based on ESP-IDF to capture CSI at 2.4 GHz with 20 MHz bandwidth and 30 subcarriers, streaming CSI to an edge computer over UDP at 50 Hz.

4.1.2. Ground-Truth Temperature Field

We instrument the room with a sparse grid of digital temperature sensors (e.g., high-accuracy thermistors or digital sensors) mounted at 1.1 m height on a virtual 12 × 8 grid, with some cells co-located and others interpolated. For selected experiments, we additionally employ a calibrated IR camera to obtain high-resolution surface temperature maps for validation.[5,22]

4.2. Data Collection Protocol

We perform controlled heating experiments over several days:
  • Static gradient scenarios: localized heaters or radiators are turned on near one wall or corner, creating stable horizontal/vertical temperature gradients.
  • Dynamic scenarios: heaters are cycled on/off and fans are toggled to generate evolving temperature fields.
  • Human presence: occupants move naturally in the room to simulate realistic disturbances.
At each scenario, CSI from all links, node positions, and ground-truth temperature measurements are logged. We create time-synchronized snapshots where the thermal field changes slowly relative to the CSI sampling rate.

4.3. CSI Feature Extraction per Link

For each link , we process a short time window of CSI to obtain a scalar or low-dimensional feature Δ y ( ) that correlates with temperature deviations:
  • Sanitize CSI phase to remove hardware offsets and normalize amplitude.
  • Compute time-averaged amplitude and phase statistics over the window.
  • Apply a temperature-sensitive feature mapping learned from calibration data (e.g., linear regression from multi-subcarrier features to an effective path-integrated temperature).
The result is a vector y R L for each snapshot, where L depends on node count.

4.4. Weight Matrix Construction

Given node positions and a discretized room grid, we approximate link paths as straight segments and compute intersection lengths with each grid cell using a standard ray-tracing approach.[19] These lengths, optionally weighted by path loss models, form entries w i ( ) of W in Eq. (6). We normalize W to reduce sensitivity to absolute scale and to satisfy stability conditions.

4.5. Inverse Solver and Edge Implementation

We solve Eq. (7) using pre-factorization of ( W W + λ L L ) on the edge computer (Raspberry Pi 4). At runtime, each new y requires only matrix-vector multiplications and back-substitution to compute t ^ . The reconstructed temperature field is then added to T 0 and visualized as a 2D heatmap.
Regularization parameter λ and grid resolution are selected via cross-validation, balancing reconstruction error and computational cost.

5. Results

5.1. Reconstruction Accuracy

Across static gradient scenarios, Wi-Fi CSI thermal tomography achieves average per-cell MAE of approximately 0.9C on a 12 × 8 grid, with peak errors below 1.8C near sharp gradients and boundaries. When compared to bilinear interpolation from a small subset of thermistors (e.g., four sensors), the tomographic approach reduces field reconstruction MAE by about 27%, demonstrating the added value of multi-link CSI information.

5.2. Effect of Node Count and Geometry

By varying the number of ESP32 nodes and their placement, we observe that reconstruction accuracy improves rapidly when increasing from 4 to 8 nodes and saturates beyond 10 nodes for the tested room size. Non-uniform placements that maximize angular diversity of links provide better conditioning of W and lower reconstruction error than uniformly spaced or collinear configurations.

5.3. Dynamic and Human-Perturbed Scenarios

In dynamic heating and occupant motion scenarios, temporal smoothing (e.g., sliding-window averaging of t ^ ) maintains stable reconstructions while capturing slow thermal changes. Moderate human motion introduces transient artifacts but does not significantly bias the overall temperature field; the MAE increases by less than 0.2C on average compared to static conditions, indicating robustness to everyday activity.

5.4. Computation Time and Resource Usage

On a Raspberry Pi 4, the reconstruction pipeline (feature aggregation from ESP32 streams, vector y formation, and tomographic inversion) completes in approximately 310 ms per snapshot for a 12 × 8 grid and 10 nodes, supporting update rates above 3 Hz. The memory footprint remains under a few hundred megabytes, with most cost due to matrix pre-factorization performed once at initialization.

6. Discussion

6.1. Interpretation and Limitations

The proposed framework demonstrates that coarse indoor temperature fields can be inferred from Wi-Fi CSI using relatively simple models and regularized inversion. However, several limitations exist: the linear forward model neglects complex multipath and humidity effects, the spatial resolution is constrained by link geometry and node count, and accuracy near boundaries and sharp gradients is lower than in interior regions. Incorporating more detailed propagation modeling or learning-based corrections could further improve performance.[19,24]

6.2. Comparison with Alternative Approaches

Compared to dense thermistor arrays or IR cameras, Wi-Fi thermal tomography offers lower spatial resolution but dramatically reduced hardware and wiring requirements, especially in retrofits. Unlike camera-based thermography, Wi-Fi-based sensing does not require line-of-sight and works in darkness or behind light partitions. Relative to single-point CSI temperature sensing, the tomographic approach provides richer spatial information without deploying sensors throughout the interior.

6.3. Implications for Smart Building Applications

The ability to obtain coarse 2D temperature maps using boundary-mounted ESP32 nodes and existing Wi-Fi infrastructure opens interesting possibilities for HVAC diagnostics and control. Examples include detecting poorly conditioned zones, identifying persistent hot or cold spots, and informing placement of diffusers or returns. Integrating Wi-Fi thermal tomography with occupancy and humidity sensing could enable multi-parameter spatially aware control strategies.

6.4. Future Work

Future research directions include extending the framework to 3D thermal fields, jointly reconstructing temperature and humidity, and integrating learning-based surrogates for the inverse solver. Deep tomographic networks trained on simulated propagation and real data could compensate for non-linearities and multipath, while physics-informed neural networks may help enforce consistency with heat transfer equations.[21,25] Deployments in larger and more complex buildings will also be required to fully assess scalability.

7. Conclusions

This paper presented a Wi-Fi CSI thermal tomography framework that reconstructs 2D indoor temperature fields using arrays of low-cost ESP32 nodes. By modeling multi-link CSI as approximate line-integral measurements of temperature-induced refractive-index changes and solving a regularized inverse problem, we obtained coarse thermal maps with sub-2C peak error using only boundary-mounted Wi-Fi devices. The prototype implementation achieved near-real-time reconstruction on an edge computer, suggesting that commodity Wi-Fi infrastructure can serve as a practical, non-contact thermal sensing layer for smart buildings. Future extensions will pursue higher-dimensional reconstructions, multi-parameter fields, and tighter integration with building energy management systems.

Author Contributions

S.C. conceived the tomography concept, developed theory, and wrote the manuscript. K.P. designed reconstruction algorithms and analysis. D.F. implemented ESP32 firmware and data acquisition. S.G. supervised the project and coordinated testbed deployment. All authors reviewed and approved the final manuscript.

Funding

This work was supported by XZent Solutions Pvt Ltd internal research budget.

Informed Consent Statement

Not applicable (no human or animal subjects, or identifiable personal data).

Data Availability Statement

Processed datasets, reconstruction code, and configuration files are available from the corresponding author upon reasonable request.

Acknowledgments

The authors thank XZent Solutions Pvt Ltd for hardware and testbed support and acknowledge the assistance of building operations staff during experiments.

Conflicts of Interest

The authors declare no competing financial interests.

References

  1. Pérez-Lombard, L.; Ortiz, J.; Pout, C. A review on buildings energy consumption information. Energy and Buildings 2008, vol. 40(no. 3), 394–398. [Google Scholar] [CrossRef]
  2. Dounis, A. I.; Caraiscos, C. Advanced control systems engineering for energy and comfort management in a building environment—A review. Renewable and Sustainable Energy Reviews 2009, vol. 13(no. 6–7), 1246–1261. [Google Scholar] [CrossRef]
  3. Oldewurtel, F. Use of model predictive control and weather forecasts for energy efficient building climate control. Energy and Buildings 2012, vol. 45, 15–27. [Google Scholar] [CrossRef]
  4. Meola, C.; Carlomagno, G. M. Recent advances in the use of infrared thermography. Measurement Science and Technology 2004, vol. 15(no. 9), R27–R58. [Google Scholar] [CrossRef]
  5. Vollmer, A. Infrared thermography in experimental fluid mechanics. Experiments in Fluids 2013, vol. 54(no. 9), 1572. [Google Scholar] [CrossRef]
  6. Afram, A.; Janabi-Sharifi, F. Theory and applications of HVAC control systems—A review of model predictive control (MPC). Building and Environment 2014, vol. 72, 343–355. [Google Scholar] [CrossRef]
  7. Wang, Y. E-eyes: Device-free location-oriented activity identification using fine-grained WiFi signatures. in Proc. ACM MobiCom, 2014; pp. 617–628. [Google Scholar] [CrossRef]
  8. Halperin, D.; Hu, W.; Sheth, A.; Wetherall, D. Tool release: Gathering 802.11n traces with channel state information. ACM SIGCOMM Computer Communication Review 2011, vol. 41(no. 1), 53–53. [Google Scholar] [CrossRef]
  9. Kotaru, M.; Joshi, K.; Bharadia, D.; Katti, S. SpotFi: Decimeter level localization using WiFi. Proc. ACM SIGCOMM, 2015; pp. 269–282. [Google Scholar] [CrossRef]
  10. Abdelnasser, H.; Youssef, M.; Harras, K. A. WiGest: A ubiquitous WiFi-based gesture recognition system. Proc. IEEE INFOCOM, 2015; pp. 1472–1480. [Google Scholar] [CrossRef]
  11. Liu, J. Tracking vital signs during sleep leveraging off-the-shelf WiFi. Proc. ACM MobiSys, 2015; pp. 267–279. [Google Scholar] [CrossRef]
  12. Zhang, Y. WiDAR: Decimeter-level passive tracking via Wi-Fi. IEEE Transactions on Mobile Computing 2021, vol. 20(no. 11), 3144–3159. [Google Scholar] [CrossRef]
  13. Wang, Z.; Guo, K.; Xiao, F. RSSI-based temperature sensing for wireless sensor networks. Proc. IEEE ICCCN, 2016; pp. 1–6. [Google Scholar] [CrossRef]
  14. Chaudhari, S.; Pise, K.; Fukate, D. Wavelet-Domain Respiratory-Cardiac Decoupling for Wi-Fi CSI Vital Sign Monitoring: A Multi-Resolution Analysis Framework. In Preprint, Research Square; 2026. [Google Scholar] [CrossRef]
  15. Chaudhari, S.; Pise, K.; Fukate, D.; Gawande, S. Deep Wavelet Scattering Networks for Robust Wi-Fi CSI Vital Sign Separation Under Multipath Interference and Non-Stationary Dynamics: Theory, Algorithms, and Real-Time Implementation. Preprints 2026, 2026010835. [Google Scholar] [CrossRef]
  16. Ciddor, P. E. Refractive index of air: New equations for the visible and near infrared. Applied Optics 1996, vol. 35(no. 9), 1566–1573. [Google Scholar] [CrossRef] [PubMed]
  17. Measures, R. M. Laser Remote Sensing: Fundamentals and Applications; Wiley, 1984. [Google Scholar]
  18. Kawaguchi, H. Reconstructing Depth Images of Moving Objects from Wi-Fi CSI Data. arXiv 2025, arXiv:2503.06458. [Google Scholar] [CrossRef]
  19. Wang, X. Electromagnetic diffraction tomography based on Wi-Fi signals. IEEE Transactions on Instrumentation and Measurement 2024. [Google Scholar] [CrossRef]
  20. Zhao, W. Commodity Wi-Fi-Based Wireless Sensing Advancements over the Past Five Years. Sensors 2024, vol. 24(no. 22), 7195. [Google Scholar] [CrossRef] [PubMed]
  21. Zhang, Y. Three-Dimensional Thermal Tomography with Physics-Informed Neural Networks. International Journal of Heat and Mass Transfer 2024. [Google Scholar] [CrossRef]
  22. Tang, Y. Real-time micro-scale temperature imaging at low cost based on fluorescent intensity ratio. Scientific Reports 2017, vol. 7, 42843. [Google Scholar] [CrossRef]
  23. Bongers, J. CT-based thermometry with virtual monoenergetic images by dual-energy. Insights into Imaging 2021, vol. 12(no. 1), 122. [Google Scholar] [CrossRef]
  24. Yao, M. Through-Wall Imaging based on WiFi Channel State Information. arXiv 2024, arXiv:2401.17417. [Google Scholar]
  25. Schmitt, M. Adapting CSI-Guided Imaging Across Diverse Environments: An Experimental Study Leveraging Continuous Learning. arXiv 2024, arXiv:2404.00951. [Google Scholar] [CrossRef]
  26. Shen, Y. High-Resolution WiFi Imaging with Reconfigurable Intelligent Surfaces. arXiv 2021, arXiv:2112.00242. [Google Scholar]
  27. Ma, Y.; Zhou, G.; Wang, S. Wi-Fi sensing: applications and challenges. Journal of Engineering 2019, vol. 2019(no. 3), 88–97. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated