How to change from Celsius to Fahrenheit

I have a project for the net I need to change to Fahrenheit. I am learning and used Visuino,
code below can I get a hint or two.

thanks

//----------------------------------------------
//
//        Sketch Generated by Visuino
//              www.visuino.com
//          Version 7.8.2.290
//
//------------------ Source --------------------
//
// DHT11TemperatureHumidityI2CLCDDisplayInstructable.visuino
//
//----------------------------------------------

#define VISUINO_ARDUINO_NANO
#define _MITOV_DHT11_CLOCK_PIN_

#include <OpenWire.h>
#include <Mitov.h>
#include <Mitov_FormattedSerial.h>
#include <Wire.h>
#include <Mitov_Basic_I2C.h>
#include <Mitov_LiquidCrystalDisplay_I2C.h>
#include <Mitov_DHT_Sensor.h>
#include <Mitov_Timing.h>

// Arduino Board Declarations

namespace BoardDeclarations
{
Mitov::ArduinoDigitalInputChannel<2, false> ArduinoDigitalChannel_2( false );
} // BoardDeclarations

// Interrupts

namespace Interrupts
{
void Handler2();

OpenWire::PinFallingInterrupt Pin2( 2, Handler2 );

void Handler2()
{
    Pin2.InterruptHandler();
}

} // Interrupts

// Declarations

namespace Declarations
{
Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>> LiquidCrystalDisplay1 = Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>( 16, 2 );
Mitov::LiquidCrystalElementTextField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1> TArduinoLiquidCrystalElementTextField1;
Mitov::LiquidCrystalElementBasicPositionedWidthTypedField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1, Mitov::LiquidCrystalElementAnalogField, float> TArduinoLiquidCrystalElementAnalogField1( 0.0f );
Mitov::LiquidCrystalElementTextField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1> TArduinoLiquidCrystalElementTextField2;
Mitov::LiquidCrystalElementBasicPositionedWidthTypedField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1, Mitov::LiquidCrystalElementAnalogField, float> TArduinoLiquidCrystalElementAnalogField2( 0.0f );
Mitov::LiquidCrystalElementDefineCustomCharacter<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1> TArduinoLiquidCrystalElementDefineCustomCharacter1( 0 );
Mitov::LiquidCrystalElementCustomCharacterField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1> TArduinoLiquidCrystalElementCustomCharacterField1;
Mitov::LiquidCrystalElementTextField<Mitov::LiquidCrystalDisplay<Mitov::LiquidCrystalDisplayI2C<39,TwoWire,Wire>>, Declarations::LiquidCrystalDisplay1> TArduinoLiquidCrystalElementTextField3;
Mitov::DHT11Sensor_Interrupt<2, Interrupts::Handler2> HumidityThermometer1;
Mitov::ClockGenerator ClockGenerator1;
} // Declarations

// Pin Call Declarations

namespace PinCalls
{
void PinCallerReceive1( void *_Data );
void PinCallerReceive2( void *_Data );
void PinCallerReceive3( void *_Data );
} // PinCalls

// Pin Call Implementations

namespace PinCalls
{
void PinCallerReceive1( void *_Data )
{
  Declarations::TArduinoLiquidCrystalElementAnalogField1.InputPin_o_Receive( _Data );
}

void PinCallerReceive2( void *_Data )
{
  Declarations::TArduinoLiquidCrystalElementAnalogField2.InputPin_o_Receive( _Data );
}

void PinCallerReceive3( void *_Data )
{
  Declarations::HumidityThermometer1.ClockInputPin_o_Receive( _Data );
}

} // PinCalls

namespace ComponentsHardware
{
void SystemUpdateHardware()
{
}
} // ComponentsHardware

//The setup function is called once at startup of the sketch
void setup()
{
  {
    static const uint8_t _CharMap[] PROGMEM = {12, 18, 18, 12, 0, 0, 0, 0};
    Declarations::TArduinoLiquidCrystalElementDefineCustomCharacter1._CharMap = _CharMap;
  }

  Interrupts::Pin2.SubscribeFalling( (OpenWire::Object *)&Declarations::HumidityThermometer1, (OpenWire::TOnInterrupt)( void (OpenWire::Object::*) ( bool ) )&Mitov::DHT11Sensor_Interrupt<2, Interrupts::Handler2>::InterruptHandler );
  Declarations::HumidityThermometer1.ClockInputPin_o_IsConnected = true;
  Wire.begin();
  Declarations::TArduinoLiquidCrystalElementTextField1.InitialValue = "Temp:";
  Declarations::TArduinoLiquidCrystalElementTextField1.Width = 10;
  Declarations::TArduinoLiquidCrystalElementAnalogField1.Precision = 1;
  Declarations::TArduinoLiquidCrystalElementAnalogField1.Width = 4;
  Declarations::TArduinoLiquidCrystalElementAnalogField1.Column = 10;
  Declarations::TArduinoLiquidCrystalElementTextField2.InitialValue = "Humidity:";
  Declarations::TArduinoLiquidCrystalElementTextField2.Width = 10;
  Declarations::TArduinoLiquidCrystalElementTextField2.Row = 1;
  Declarations::TArduinoLiquidCrystalElementAnalogField2.Precision = 1;
  Declarations::TArduinoLiquidCrystalElementAnalogField2.Width = 4;
  Declarations::TArduinoLiquidCrystalElementAnalogField2.Column = 10;
  Declarations::TArduinoLiquidCrystalElementAnalogField2.Row = 1;
  Declarations::TArduinoLiquidCrystalElementCustomCharacterField1.Index = 0;
  Declarations::TArduinoLiquidCrystalElementCustomCharacterField1.Column = 15;
  Declarations::TArduinoLiquidCrystalElementTextField3.InitialValue = "%";
  Declarations::TArduinoLiquidCrystalElementTextField3.Column = 15;
  Declarations::TArduinoLiquidCrystalElementTextField3.Row = 1;

  Declarations::HumidityThermometer1.TemperatureOutputPin().SetCallback( PinCalls::PinCallerReceive1 );
  Declarations::HumidityThermometer1.HumidityOutputPin().SetCallback( PinCalls::PinCallerReceive2 );
  Declarations::ClockGenerator1.OutputPin().SetCallback( PinCalls::PinCallerReceive3 );

  Declarations::LiquidCrystalDisplay1.SystemInit();
  Declarations::TArduinoLiquidCrystalElementDefineCustomCharacter1.SystemInit();
  Declarations::HumidityThermometer1.SystemInit();
  Declarations::ClockGenerator1.SystemInit();

  Declarations::TArduinoLiquidCrystalElementTextField1.SystemStart();
  Declarations::TArduinoLiquidCrystalElementAnalogField1.SystemStart();
  Declarations::TArduinoLiquidCrystalElementTextField2.SystemStart();
  Declarations::TArduinoLiquidCrystalElementAnalogField2.SystemStart();
  Declarations::TArduinoLiquidCrystalElementCustomCharacterField1.SystemStart();
  Declarations::TArduinoLiquidCrystalElementTextField3.SystemStart();
  Declarations::HumidityThermometer1.SystemStart();
  Declarations::ClockGenerator1.SystemStart();

  OpenWire::SystemStarted();
}

// The loop function is called in an endless loop
void loop()
{
  unsigned long A_Current_Microseconds = micros();

  Declarations::HumidityThermometer1.SystemLoopBegin( A_Current_Microseconds );
  Declarations::ClockGenerator1.SystemLoopBegin( A_Current_Microseconds );

  Declarations::TArduinoLiquidCrystalElementCustomCharacterField1.SystemLoopEnd( A_Current_Microseconds );
}

What is wrong with the usual

f = 1.8 * c + 32 ;

?

I dont understand, I am new.

Looks like a Visuino question and not an Arduino question. Do they have a forum?

code below can I get a hint or two.

First, try to figure out what the code you have does.

Then it should not be difficult to modify.

It was a simple check box in Visuino. :confused:

A check box is an excellent start!

However, before we can help, you have to figure out how to actually measure the temperature in Celsius, and then measure it. Though if you want to forge ahead by yourself, see reply #1 for a hint.

BOONEY440:
I dont understand, I am new.

New to what ?

Do you really not know how to convert from Celsius to Fahrenheit and vice versa using pencil and paper ?