analogRead and generating checksum values

something like this (am away from my arduino at the moment, so coding a bit blind):

int touchStrip = 0;
char touchStripBuf[8];

touchStrip = analogRead(touchStripPin);
itoa(touchStripPin, touchStripBuf, 10);
for (int i = 0; i < 8; i++) {
if (touchStripBuf == 10) {

  • break;*
  • }*
  • else {*
    _ checksum += touchStripBuf*;_
    _
    }_
    _
    }*_
    Thanks,
    David