The setup is not easy, but this is what we will do together, we still miss the respiratory rate

For this, we can take a AD8232, attach it to an ESP32 module, connect it to Home Assistant, and export the sensor data to InfluxDB. From there, we can take HeartPy to analyse our raw ECG data to get the R-R peaks. With those, we can calculate our respiratory rate in Peter H. Charltons Matlab …