Hard to respond with no code showing an example. A guess: if the variable is x then add constraints 0<=x<=1 and Element[x,Integers].
x
0<=x<=1
Element[x,Integers]