Add assertion for callbacks in digital and analog reads.