I'm not sure if this is connected right

Thanks everyone, I tried the code using the “int” suggestion and that worked.