So what's the problem? Each stick has X and Y axis. Compare the value of Y axis only and rotate the sprite. If I remember correctly, the value changes from -100 to 100 with 0 in middle point.
You can use "Compare axis" condition, or Gamepad.axis(0,n) expression, where "n" is the axis index.