Thing is, in the example you don't even print the outcome... ![]()
Extra note, map(x, 0, 1023, 0, 100) looks okay but actually doesn't make for a nice curve. Only value 1023 will map to 100 (where as for example the whole range 52 to 60 maps to 5). map(x, 0, 1024, 0, 101) will give a nicer result ![]()