Hi. I am having problem with the analogRead() function. I made a little adjustment to the IND. I/0 D21G and the GPRS module where I put steel spacers where the GPRS module is attached to back (the plastic back which is mounted on a DIN rail) and fastend the D21G topboad on the spacers with screws. ( I would post a photo, but i don't have enough karma points). The reason why I am doing this, is I want the Industruino to be as compact as possible.
The problem is that when the screws make contact with the spacers the analogRead function stops the program and gives some bad readings. If i lift the D21G topboard off and it makes no contact with the screws the reading is fine and it doesn't stop. Do you have any ideas what could be the problem?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!