I'm have an Industrino connected to a sensor with a current loop. In about 75% of the time a call to the function Indino.analogRead(4) results in an infinite loop. In between the reading of the input channel is working fine.
My settings regarding the input are the following:
tc_4 = Indio.analogRead(4);
What could be the reason for this behavior?
Thank you very much
Hi, my guess is that it has to do with the power on/off of the GSM module. The sketch you link to is not specific to the Industruino GSM module, please have a look at https://github.com/Industruino/democode/blob/master/GPRSwebclientTinyGSM_D21G_HardwareSerial/GPRSwebclientTinyGSM_D21G_HardwareSerial.ino
So, the module can be switched on/off with a 1s HIGH pulse on D6. My guess is that your module is switched off most of the time. I suggest you include a function in your code to check if the module is on, and if not, switch it on with a pulse.
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!