The sensor is connected to the I2C bus, and the I2C bus is scanned to ensure that the sensor is connected. The sensor is also checked to ensure that it is a MAX30102 or MAX30105 sensor. The ...