Sigmoid fuction is generally used to limit the value in 0 and 1 i.e, binary output( comparing with thresold value) or even can generate bipolar output using a bias. In a neural network, often sigmoid function is used between last hidden layer and output layer for binary classification.