Correct foreign between group and sensor box