And from looking at you code it is reasonable to see why only one sensor, #3, is giving the correct values. Follow the advice given in Post#2, #5, and #9 to fix your issue.
Look at your own code and see why "3" "3" "3" seems to work but not "0" or "1" or "2" there is only "3" "3" "3".