The device now works more or less, but with an error way too big.