public int pwm() {
		System.out.println(temperatureRange);
		System.out.println(delay_on[temperatureRange]);
		System.out.println(delay_off[temperatureRange]);
		
		
		
		if(temperatureRange == 0 || temperatureRange == 7){
			range();
			return 1;
		}
		try{  
		       while(Interupt == 0)  
		       {  
		    	   InLoop = 1;
		    	   
		    	   //set all the pin On.
		    	   for(int j=0;j<8;j++){
		    		   setGpioPin(j, 1);
		    	   }
		    	   //delay the pin when it is On.
		    	   if(delay_on[temperatureRange]!=0){
		    		   Thread.sleep(delay_on[temperatureRange]);   
		    	   }
		    	   //set all the pin Off.
		    	   for(int j=0;j<8;j++){
		    		   setGpioPin(j, 0);
		    	   }
		    	   //delay the pin when it is Off.
		    	   if(delay_off[temperatureRange]!=0){
		    		   Thread.sleep(delay_off[temperatureRange]);
		    	   }
		       }  
	     }  
	     catch(Exception ex){  
	       gpio.shutdown();  
	       ex.printStackTrace();  
	     }  
		Interupt = 0;
		InLoop = 0;
		return 1;
	}