fixed reading multiple pins