#include < 18F4550.h >
#USE delay(clock = 8M)
#FUSES NOWDT //No Watch Dog Timer
#FUSES PUT //Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOMCLR //Master Clear pin enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD
//#use rs232(UART1, baud=9600)
// Definición de pines para sensores y LEDs
#define SENSOR_PINS_COUNT 8
int sensorPins[SENSOR_PINS_COUNT] = { 0, 1, 2, 3 , 4, 5, 6, 7};
float thresholds[SENSOR_PINS_COUNT] = { 327, 327, 736, 736, 736, 736, 327, 327};
int ledPin1 = PIN_B0; // Ejemplo, asigna el pin correcto para tu LED
int ledPin2 = PIN_B1; // Ejemplo, asigna el pin correcto para tu LED
void setup() {
setup_adc(ADC_CLOCK_INTERNAL);
setup_adc_ports(ALL_ANALOG); // Configurar pines A0 a A7 como entradas analógicas
delay_ms(100);