No i didn't forget 
let's see first example in this thread
Code:
; Initialize your hardware and LCD first.
DEFINE ADC_BITS 8 ' Number of bits in ADCIN result
ADCON1.7 = 1 ' Right Justify AD result
INCLUDE "LCDbar_INC.bas" ' Include the BARgraph routines
Value VAR WORD ' Must be a WORD even though AD is 8bit
LCDOUT $FE, 1 ' Clear Screen
Loop1:
ADCIN 0, Value
LCDOUT $FE,2,"Value = ",DEC Value," "
; syntax- BARgraph Value, Row, Col, Width, Range, Style
@ BARgraph _Value, 2, 0, 16, 255, lines
GOTO Loop1
You just need to monitor Value variable with some IF-THEN statements after ADCIN line
Code:
IF Value>200 then
LCDOUT $FE,2,"VALUE>200 "
endif
Bookmarks