Was stimmt da nicht? wenn ich im terminal schaue steht dass Ständig taster gedrückt werden obwohl dass nicht der fall ist

z.b.
taster1
taster9
taster3
taster12
taster1
taster8
taster14
taster16
taster4
taster2
....
..
.

Code:
define a1 port[1]
define a2 port[2]
define a3 port[3]
define a4 port[4]
define a5 port[5]
define a6 port[6]
define a7 port[7]
define a8 port[8]
define a9 port[9]
define a10 port[10]
define a11 port[11]
define a12 port[12]
define a13 port[13]
define a14 port[14]
define a15 port[15]
define a16 port[16]

#top

if a1=on then print "taster1"
if a2=on then print "taster2"
if a3=on then print "taster3"
if a4=on then print "taster4"
if a5=on then print "taster5"
if a6=on then print "taster6"
if a7=on then print "taster7"
if a8=on then print "taster8"
if a9=on then print "taster9"
if a10=on then print "taster10"
if a11=on then print "taster11"
if a12=on then print "taster12"
if a13=on then print "taster13"
if a14=on then print "taster14"
if a15=on then print "taster15"
if a16=on then print "taster16"

pause 10

goto top