If the ball is made of an electrically conducting material it might work. The touch sensor detects a changing capacitance so the object that touches must influence that. As the human body is kind of a salt water ballon it does change the capacitance a little bit and that is detected.