serialEvent()

Called when data is available. Use Serial.read() to capture this data.
serialEvent()
statements: any valid statements
        void serialEvent(){
//statements
}