Hi Roy
Here is my attempt at reworking the boundary part of the code to do what I infer you want to do.
// Sets the boundaries
if (flat > 53.471623)
{
Serial.print("Lost Connection - High!");
}
else if (flat < 53.471555)
{
Serial.print("Lost Connection - Low!");
}
if (flon > -2.240617)
{
Serial.print("Lost Connection - Right!");
}
else if (flon < -2.241046)
{
Serial.print("Lost Connection - Left!");
}
So if either flat or flon (or both) are outside the small ranges, you get an error message.
How does that look?
Ray