Hi Martin, Andre. May I inquire? Why do we need a separate sun50i_h616_ths_calibrate() function? Why can't we just extend an existing sun50i_h6_ths_calibrate()? At my glance the calculations in both functions are the same. We just need to handle a special case for the 4th sensor. Best regards, Maksim