The setup comprised of ECG 3-channel electrodes, connected to a AD8232 module. The connection of 3 electrodes to body placement is shown below.
NodeMCU ESP8266 collects the ECG signals from it at 360 Hz sampling frequency and this data and transports the data to PC for application of signal processing to extract heart rate and breathing rate. Then the python script gets those signals, and performs signal processing to get HR and BR.