Issues with Serial Read and write

void loop() {

static int i = 0;