who add FSR sensor to this code

hi can any one help me to add FSR to this code to stop Attention servo (index) this is my code

sketch_dec12a.ino (2.84 KB)

what is FSR?

int ByteRead;

It does not make sense to use a type (byte) in the name of a variable when the type in the name doesn't match the type of the variable.

return ByteRead;

So, you lied when you said the function returns a byte.

I quit reading the code after that. The indentation is just too poor for me to waste time trying to decipher. And, that is dumb, because Tools + Auto Format makes it so easy to get the indentation right.

(F)orce (S)ensitive (R)esitor?