PowerSensor3 doesn't initialize the pair_id loop iterator, which causes various problems.
PowerSensor3
pair_id