Working version with 3 sensors