# Intermittent ArrayIndexOutOfBoundsException reading thermopile over serial

**URL:** https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361
**Category:** Electronics (Arduino, etc.)
**Created:** [September 22, 2021, 2:55am UTC](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361 "2021-09-22T02:55:03Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![RichardDL](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RichardDL](https://discourse.processing.org/u/RichardDL)
#### Post date: [September 23, 2021, 9:19pm UTC](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361/9 "2021-09-23T21:19:17Z")

</div>

Hi @The_Wolf_of_Walmart, Re getting things to work reliably. On a couple of projects I’ve found that the Mega does not like receiving serial when it’s not ready. See this [topic](https://discourse.processing.org/t/program-slower-when-i-send-data-to-arduino/19815/6).

---

_[View the full topic](https://discourse.processing.org/t/intermittent-arrayindexoutofboundsexception-reading-thermopile-over-serial/32361)._
