Newer version of IBM Watson IoT platform has some widgets available which avoid the need of undergoing complex steps of pushing own application for graphing, unless more advanced visualization is desired. Among our 3 examples, there is temperature.ino file. The sketch uses the internal temperature sensor of ESP32 board, that is not as great as DHT11 like device. However, that way is enough great to check graphing. The code was this :

temperature.ino

Vim

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

/**

*Asimple IBM IoT example fortesting connection

*Onboard LED on pin2will blink each time data published

*Serial monitor will give OK output each time data published

*Base code written by http://www.iotsharing.com/

*Improved with guide by Abhishek Ghosh,https://thecustomizewindows.com/

Using the temperature.ino file, we can check the basic visualization/graphing of data. For this, on the dashboard of Internet of Things control panel, go to “Usage Overview” > click “Add new card” > add a line chart widget. The required data to fill the web form will be populated as drop-down options. You will get a live graph like that of the included screenshot.