In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I think you need to change Put Number,0,1,2,3,4,5,6,7,8 Do Put Sensor,$00,$00,$00,$00,$00,$00,$00,$00,$00 to Do Put Number,0,1,2,3,4,5,6,7,8 Put Sensor,$00,$00,$00,$00,$00,$00,$00,$00,$00 otherwise, the 2nd time through the loop the sensor numbers have switched places, which of course is not the case, since you didn't connect the sensors in a different order. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=174704#m174991 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)