Newbie - HS-311 Servo 360 Continuous Rotation help

The problem i mention earlier is now solved can u tell me Is it possible that i can use infrared sensor without using analogue pins of Arduino uno instead can i use pin o and 1 TXd RXD for this purpose?